Hi,
Since i find it very hard to get started writing a custom type, just by writing the spec file for the type first, then writing the code for the type, to pass the unit spec,
I started a github where I will post my efforts to achieve this goal.
I will try to write to much comments in the code, so people with as less as coding/ruby/rspec experience could possible follow the progress.
Any comments, corrections and best practice advice are very very welcome.
https://github.com/Open-Future-Belgium/puppet_rspec_demo
I hope this is a start of some useful documentation about rspec and custom types/provider writing
(especially the rspec part)
happy learning.
Grts
johan
--
Johan De Wit
Open Source Consultant
Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP0000006)
_________________________________________________________
Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72 Fax +32 (0)2/255 70 71
3071 KORTENBERG Mobile +32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_________________________________________________________
Next Events:
Puppet Advanced Training | https://www.open-future.be/puppet-advanced-training-12-till-14th-november
Zabbix Certified Training | http://www.open-future.be/zabbix-certified-training-18-till-20th-november
Zabbix Large Environments Training | http://www.open-future.be/zabbix-large-environments-training-21-till-22nd-november
Puppet Fundamentals Training | http://www.open-future.be/puppet-fundamentals-training-10-till-12th-december
Subscribe to our newsletter | http://eepurl.com/BUG8H
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/528E1FC4.4000005%40open-future.be.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/528E1FC4.4000005%40open-future.be.
For more options, visit https://groups.google.com/groups/opt_out.
--
Andrew Parker
Freenode: zaphod42Twitter: @aparker42Software Developer
Join us at PuppetConf 2014, September 23-24 in San Francisco
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CANhgQXvdtD7ogN12qdm%3DXLU81t-t4b8%3D37bNd%3DhGV_no1E7QPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
-- Johan De Wit Open Source Consultant Red Hat Certified Engineer (805008667232363) Puppet Certified Professional 2013 (PCP0000006) _________________________________________________________ Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72 Fax +32 (0)2/255 70 71 3071 KORTENBERG Mobile +32 (0)474/42 40 73 BELGIUM http://www.open-future.be _________________________________________________________
Upcoming Events:
Puppet Advanced Training | https://www.open-future.be/puppet-advanced-training-12-till-14th-november
Zabbix Certified Training | https://www.open-future.be/zabbix-certified-training-18-till-20th-november
Zabbix Large Environments Training | https://www.open-future.be/zabbix-large-environments-training-21-till-22nd-november
Puppet Fundamentals Training | https://www.open-future.be/puppet-fundamentals-training-10-till-12th-december
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/528E4872.2080905%40open-future.be.
For more options, visit https://groups.google.com/groups/opt_out.
Learning to write custom types, I thought to validate the following
property
Because we have thre possible values looking like minssf=<some value>,
the newvalues cannot be used (i think)
And I wanted to add some specific validation for those types of values.
Is this a good thinking path ? Or is that a No Go thing ?
John
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/d9416bb9-c6c4-45d4-b369-a8316a797cb7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
-- Johan De Wit Open Source Consultant Red Hat Certified Engineer (805008667232363) Puppet Certified Professional 2013 (PCP0000006) _________________________________________________________ Open-Future Phone +32 (0)2/255 70 70 Zavelstraat 72 Fax +32 (0)2/255 70 71 3071 KORTENBERG Mobile +32 (0)474/42 40 73 BELGIUM http://www.open-future.be _________________________________________________________
Upcoming Events: