Class: Brewdler::Dsl
- Inherits:
-
Object
- Object
- Brewdler::Dsl
- Defined in:
- lib/brewdler/dsl.rb
Instance Method Summary collapse
- #brew(name, options = {}) ⇒ Object
- #cask(name) ⇒ Object
-
#initialize(input) ⇒ Dsl
constructor
A new instance of Dsl.
- #process ⇒ Object
- #tap(name) ⇒ Object
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, ={}) Brewdler::BrewInstaller.install(name, ) end |
#cask(name) ⇒ Object
15 16 17 |
# File 'lib/brewdler/dsl.rb', line 15 def cask(name) Brewdler::CaskInstaller.install(name) end |
#process ⇒ Object
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 |