Class: Shaddox::Localhost::LocalActor
- Inherits:
-
Actor
- Object
- Actor
- Shaddox::Localhost::LocalActor
show all
- Defined in:
- lib/shaddox/target.rb
Instance Method Summary
collapse
Methods inherited from Actor
#initialize
Constructor Details
This class inherits a constructor from Shaddox::Actor
Instance Method Details
#exec(command, opts = {}) ⇒ Object
86
87
88
|
# File 'lib/shaddox/target.rb', line 86
def exec(command, opts = {})
system(command)
end
|
#write_file(content, dest_path) ⇒ Object
89
90
91
|
# File 'lib/shaddox/target.rb', line 89
def write_file(content, dest_path)
File.open(dest_path, 'w') { |f| f.write(content) }
end
|