Class: Brewdler::Dsl

Inherits:
Object
  • Object
show all
Defined in:
lib/brewdler/dsl.rb

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ Dsl

Returns a new instance of Dsl.



3
4
5
# File 'lib/brewdler/dsl.rb', line 3

def initialize(input)
  @input = input
end

Instance Method Details

#brew(name, options = {}) ⇒ Object



11
12
13
# File 'lib/brewdler/dsl.rb', line 11

def brew(name, options={})
  Brewdler::BrewInstaller.install(name, options)
end

#cask(name) ⇒ Object



15
16
17
# File 'lib/brewdler/dsl.rb', line 15

def cask(name)
  Brewdler::CaskInstaller.install(name)
end

#processObject



7
8
9
# File 'lib/brewdler/dsl.rb', line 7

def process
  instance_eval(@input)
end

#tap(name) ⇒ Object



19
20
21
# File 'lib/brewdler/dsl.rb', line 19

def tap(name)
  Brewdler::RepoInstaller.install(name)
end