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.



67
68
69
# File 'lib/shaddox/target.rb', line 67

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

Instance Method Details

#exec(command) ⇒ Object



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

def exec(command)
  raise "exec method must be implemented by Actor subclass"
end

#write_file(content, dest_path) ⇒ Object



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

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