Class: Paratrooper::SystemCaller
- Inherits:
-
Object
- Object
- Paratrooper::SystemCaller
- Defined in:
- lib/paratrooper/system_caller.rb
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
Instance Method Summary collapse
- #execute(call) ⇒ Object
-
#initialize(debug = false) ⇒ SystemCaller
constructor
A new instance of SystemCaller.
Constructor Details
#initialize(debug = false) ⇒ SystemCaller
Returns a new instance of SystemCaller.
5 6 7 |
# File 'lib/paratrooper/system_caller.rb', line 5 def initialize(debug = false) self.debug = debug end |
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
3 4 5 |
# File 'lib/paratrooper/system_caller.rb', line 3 def debug @debug end |
Instance Method Details
#execute(call) ⇒ Object
9 10 11 12 |
# File 'lib/paratrooper/system_caller.rb', line 9 def execute(call) (call) `#{call}` end |