Class: Rubtools::Recipe
- Inherits:
-
Object
- Object
- Rubtools::Recipe
- Defined in:
- lib/rubtools/recipe.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
writeonly
Sets the attribute options.
Instance Method Summary collapse
-
#exec(args) ⇒ Object
Exec with output.
-
#exec_without_output(args) ⇒ Object
Exec without output.
Instance Attribute Details
#options=(value) ⇒ Object (writeonly)
Sets the attribute options
3 4 5 |
# File 'lib/rubtools/recipe.rb', line 3 def (value) = value end |
Instance Method Details
#exec(args) ⇒ Object
Exec with output
14 15 16 17 18 19 20 |
# File 'lib/rubtools/recipe.rb', line 14 def exec(args) Logger.success "$ " + args if [:verbose] output = `#{args}` Logger.info "> " + output return output end |
#exec_without_output(args) ⇒ Object
Exec without output
7 8 9 10 |
# File 'lib/rubtools/recipe.rb', line 7 def exec_without_output(args) Logger.success "$ " + args if [:verbose] return `#{args}` end |