Parent

Methods

Librarian::Puppet::Dsl

Public Instance Methods

run(specfile = nil, sources = []) click to toggle source

copied from Librarian::Dsl to use our own Receiver

# File lib/librarian/puppet/dsl.rb, line 17
def run(specfile = nil, sources = [])
  specfile, sources = nil, specfile if specfile.kind_of?(Array) && sources.empty?

  Target.new(self).tap do |target|
    target.precache_sources(sources)
    debug_named_source_cache("Pre-Cached Sources", target)

    specfile ||= Proc.new if block_given?
    receiver = Receiver.new(target)
    receiver.run(specfile)

    debug_named_source_cache("Post-Cached Sources", target)
  end.to_spec
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.