Sha256: c21682fd887869994255568e18e5d8f0d9144d8bee9970f98d8c6ebf07dcec2c

Contents?: true

Size: 362 Bytes

Versions: 10

Compression:

Stored size: 362 Bytes

Contents

require 'r10k/librarian'

class R10K::Librarian::DSL

  def initialize(librarian)
    @librarian = librarian
  end

  def mod(name, args = [])
    @librarian.add_module(name, args)
  end

  def forge(location)
    @librarian.set_forge(location)
  end

  def method_missing(method, *args)
    raise NoMethodError, "unrecognized declaration '#{method}'"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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