Module: Henchman::Functions
- Defined in:
- lib/henchman/functions.rb
Class Method Summary collapse
Class Method Details
.future? ⇒ Boolean
15 16 17 |
# File 'lib/henchman/functions.rb', line 15 def self.future? ENV['FUTURE_PARSER'] == 'true' && future_applicable? end |
.future_applicable? ⇒ Boolean
9 10 11 12 13 |
# File 'lib/henchman/functions.rb', line 9 def self.future_applicable? tmp_ver = puppet_version Gem::Version.new(tmp_ver) >= Gem::Version.new('3.2') && Gem::Version.new(tmp_ver) < Gem::Version.new('4') end |
.puppet_version ⇒ Object
5 6 7 |
# File 'lib/henchman/functions.rb', line 5 def self.puppet_version Puppet.version end |