Class: Jisota::Configuration::DSL
- Defined in:
- lib/jisota/configuration.rb
Instance Method Summary collapse
-
#initialize(target) ⇒ DSL
constructor
A new instance of DSL.
- #package(name, &block) ⇒ Object
- #role(name, &block) ⇒ Object
- #server(host, options = {}) ⇒ Object
Methods inherited from DSLBase
Constructor Details
#initialize(target) ⇒ DSL
Returns a new instance of DSL.
43 44 45 |
# File 'lib/jisota/configuration.rb', line 43 def initialize(target) @target = target end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Jisota::DSLBase
Instance Method Details
#package(name, &block) ⇒ Object
47 48 49 |
# File 'lib/jisota/configuration.rb', line 47 def package(name, &block) @target.packages << Package.new(name, &block) end |