Module: PuppetGenerator::PuppetHelper

Instance Method Summary collapse

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