Class: Capistrano::Remote::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/remote/runner.rb

Overview

The primary interface for actually running tasks on a remote host.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host) ⇒ Runner

Returns a new instance of Runner.


7
8
9
# File 'lib/capistrano/remote/runner.rb', line 7

def initialize(host)
  @host = host
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host


5
6
7
# File 'lib/capistrano/remote/runner.rb', line 5

def host
  @host
end

Instance Method Details

#rails(command) ⇒ Object


15
16
17
# File 'lib/capistrano/remote/runner.rb', line 15

def rails(command)
  run_interactively(in_current_path(rails_command(command)))
end

#rake(task) ⇒ Object


11
12
13
# File 'lib/capistrano/remote/runner.rb', line 11

def rake(task)
  run_interactively(in_current_path(rake_command(task)))
end