Class: RemoteRun::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/remote_run/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command = nil) ⇒ Task

Returns a new instance of Task.



5
6
7
# File 'lib/remote_run/task.rb', line 5

def initialize(command = nil)
  @command = command
end

Instance Attribute Details

#commandObject

Returns the value of attribute command.



3
4
5
# File 'lib/remote_run/task.rb', line 3

def command
  @command
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/remote_run/task.rb', line 3

def host
  @host
end

#pidObject

Returns the value of attribute pid.



3
4
5
# File 'lib/remote_run/task.rb', line 3

def pid
  @pid
end