module PuppetGenerator::PuppetHelper
Public Instance Methods
puppet_class_name(string)
click to toggle source
# File lib/puppet_generator/puppet_helper.rb, line 3 def puppet_class_name(string) string.sub(/.pp$/, '' ).camelcase.downcase end
puppet_manifest_path(string)
click to toggle source
# File lib/puppet_generator/puppet_helper.rb, line 15 def puppet_manifest_path(string) string.underscore + '.pp' end
puppet_module_name(string)
click to toggle source
# File lib/puppet_generator/puppet_helper.rb, line 7 def puppet_module_name(string) string.sub(/.pp$/, '' ).camelcase.downcase end
puppet_module_path(string)
click to toggle source
# File lib/puppet_generator/puppet_helper.rb, line 11 def puppet_module_path(string) string.underscore end