class Simp::Rake::Helpers
Constants
- VERSION
Public Class Methods
check_required_commands(required_commands)
click to toggle source
# File lib/simp/rake/helpers.rb, line 17 def self.check_required_commands(required_commands) require 'facter' invalid_commands = Array.new Array(required_commands).each do |command| unless Array(command).find { |x| Facter::Core::Execution.which(x) } invalid_commands << Array(command).join(' or ') end end unless invalid_commands.empty? errmsg = <<-EOM Error: The following required commands were not found on your system: * #{invalid_commands.join("\n * ")} Please update your system and try again. EOM raise(errmsg) end end
new( dir = Dir.pwd )
click to toggle source
dir = top-level of project,
# File lib/simp/rake/helpers.rb, line 9 def initialize( dir = Dir.pwd ) Simp::Rake::Pkg.new( dir ) do | t | t.clean_list << "#{t.base_dir}/spec/fixtures/hieradata/hiera.yaml" end Simp::Rake::Fixtures.new( dir ) end