Sha256: 0e87eb42afc7e62d4f193052c8aada0164c903812af442fdeef449a12901f111
Contents?: true
Size: 661 Bytes
Versions: 21
Compression:
Stored size: 661 Bytes
Contents
require 'r10k/puppetfile' require 'r10k/action/base' require 'r10k/errors/formatting' module R10K module Action module Puppetfile class Check < R10K::Action::Base 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 def allowed_initialize_opts super.merge(root: :self, puppetfile: :self, moduledir: :self) end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems