Sha256: 90f0e05634ec42f1c58f7f6cbfa4a865d729fae191d1fddf2f22a06cc66ade72

Contents?: true

Size: 564 Bytes

Versions: 10

Compression:

Stored size: 564 Bytes

Contents

require 'r10k'
require 'r10k/module'

class R10K::Librarian

  attr_reader :forge

  def initialize(puppetfile)
    @puppetfile = puppetfile
    @modules    = []
    @forge      = 'forge.puppetlabs.com'
  end

  def load
    dsl = R10K::Librarian::DSL.new(self)
    dsl.instance_eval(File.read(@puppetfile), @puppetfile)

    @modules
  end

  # This method only exists because people tried being excessively clever.
  def set_forge(forge)
    @forge = forge
  end

  def add_module(name, args)
    @modules << [name, args]
  end
end

require 'r10k/librarian/dsl'

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
r10k-0.0.9 lib/r10k/librarian.rb
r10k-0.0.8 lib/r10k/librarian.rb
r10k-0.0.7 lib/r10k/librarian.rb
r10k-0.0.6 lib/r10k/librarian.rb
r10k-0.0.5 lib/r10k/librarian.rb
r10k-0.0.4 lib/r10k/librarian.rb
r10k-0.0.3 lib/r10k/librarian.rb
r10k-0.0.2 lib/r10k/librarian.rb
r10k-0.0.1 lib/r10k/librarian.rb
r10k-0.0.1rc1 lib/r10k/librarian.rb