Class: Jisota::Package::DSL
- Inherits:
-
Object
- Object
- Jisota::Package::DSL
- Defined in:
- lib/jisota/package.rb
Instance Method Summary collapse
- #description(value) ⇒ Object
-
#initialize(target) ⇒ DSL
constructor
A new instance of DSL.
- #param(name, options = {}) ⇒ Object
- #run(&block) ⇒ Object
- #verify(&block) ⇒ Object
Constructor Details
#initialize(target) ⇒ DSL
Returns a new instance of DSL.
14 15 16 |
# File 'lib/jisota/package.rb', line 14 def initialize(target) @target = target end |
Instance Method Details
#description(value) ⇒ Object
18 19 20 |
# File 'lib/jisota/package.rb', line 18 def description(value) @target.description = value end |
#param(name, options = {}) ⇒ Object
22 23 24 |
# File 'lib/jisota/package.rb', line 22 def param(name, = {}) @target.params << Param.new(name, ) end |
#run(&block) ⇒ Object
26 27 28 |
# File 'lib/jisota/package.rb', line 26 def run(&block) @target.run_block = ScriptBlock.new(&block) end |
#verify(&block) ⇒ Object
30 31 32 |
# File 'lib/jisota/package.rb', line 30 def verify(&block) @target.verify_block = ScriptBlock.new(&block) end |