Module: PuppetGenerator::PuppetHelper
- Included in:
- ExportFilters::BuildRoleIncludesForDirectory, PuppetGenerator::PuppetObjects::File, PuppetGenerator::PuppetObjects::Package, PuppetGenerator::PuppetObjects::Role, PuppetGenerator::PuppetObjects::User, Task
- Defined in:
- lib/puppet_generator/puppet_helper.rb
Instance Method Summary collapse
- #puppet_class_name(string) ⇒ Object
- #puppet_manifest_path(string) ⇒ Object
- #puppet_module_name(string) ⇒ Object
- #puppet_module_path(string) ⇒ Object
Instance Method Details
#puppet_class_name(string) ⇒ Object
3 4 5 |
# File 'lib/puppet_generator/puppet_helper.rb', line 3 def puppet_class_name(string) string.sub(/.pp$/, '' ).camelcase.downcase end |
#puppet_manifest_path(string) ⇒ Object
15 16 17 |
# File 'lib/puppet_generator/puppet_helper.rb', line 15 def puppet_manifest_path(string) string.underscore + '.pp' end |
#puppet_module_name(string) ⇒ Object
7 8 9 |
# File 'lib/puppet_generator/puppet_helper.rb', line 7 def puppet_module_name(string) string.sub(/.pp$/, '' ).camelcase.downcase end |
#puppet_module_path(string) ⇒ Object
11 12 13 |
# File 'lib/puppet_generator/puppet_helper.rb', line 11 def puppet_module_path(string) string.underscore end |