Class: Shaddox::Actor

Inherits:
Object
  • Object
show all
Defined in:
lib/shaddox/target.rb

Direct Known Subclasses

Localhost::LocalActor, Server::SSHActor

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Actor

Returns a new instance of Actor.



70
71
72
# File 'lib/shaddox/target.rb', line 70

def initialize(&block)
  instance_eval(&block)
end

Instance Method Details

#exec(command, opts = {}) ⇒ Object



73
74
75
# File 'lib/shaddox/target.rb', line 73

def exec(command, opts = {})
  raise "exec method must be implemented by Actor subclass"
end

#write_file(content, dest_path) ⇒ Object



76
77
78
# File 'lib/shaddox/target.rb', line 76

def write_file(content, dest_path)
  raise "write_file method must be implemented by Actor subclass"
end