module PuppetGenerator

main PuppetGenerator

Constants

VERSION

Public Class Methods

enable_coverage_report() click to toggle source
# File lib/puppet_generator/main.rb, line 19
def enable_coverage_report
  require 'simplecov' 

  SimpleCov.start
  SimpleCov.command_name 'cucumber'
  SimpleCov.root PuppetGenerator.root_directory
rescue
  self.logger.warn(self) { "Please note, this code is just for coverage testing. You need to install the \"simplecov\"-gem to make it work" }
end
enable_debugging_libraries() click to toggle source
# File lib/puppet_generator/main.rb, line 29
def enable_debugging_libraries
  require 'pry' 
  require 'debugger'
rescue
  self.logger.warn(self) { "Please note, this code is just for debugging the library. You need to install the \"ruby-debug19\"- and \"pry\"-gem to make it work" }
end
gem_load_path() click to toggle source
# File lib/puppet_generator/main.rb, line 11
def gem_load_path
  library_name.underscore
end
library_name() click to toggle source
# File lib/puppet_generator/main.rb, line 7
def library_name
  self.to_s
end
logger() click to toggle source
# File lib/puppet_generator/main.rb, line 3
def logger
  @logger ||= Logger.new
end
root_directory() click to toggle source
# File lib/puppet_generator/main.rb, line 15
def root_directory
  File.expand_path('../../../', __FILE__)
end