Class: Paratrooper::SystemCaller

Inherits:
Object
  • Object
show all
Defined in:
lib/paratrooper/system_caller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#debugObject

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)
  debug_message_for(call)
  `#{call}`
end