class R10K::Action::Puppetfile::Check

Public Instance Methods

call() click to toggle source
# File lib/r10k/action/puppetfile/check.rb, line 10
def call
  pf = R10K::Puppetfile.new(@root, @moduledir, @path)
  begin
    pf.load!
    $stderr.puts "Syntax OK"
    true
  rescue => e
    $stderr.puts R10K::Errors::Formatting.format_exception(e, @trace)
    false
  end
end

Private Instance Methods

allowed_initialize_opts() click to toggle source
# File lib/r10k/action/puppetfile/check.rb, line 24
def allowed_initialize_opts
  super.merge(root: :self, puppetfile: :self, moduledir: :self)
end