class Object

Public Instance Methods

execute_interactively(command, server) click to toggle source
# File lib/capistrano/tweaks.rb, line 4
def execute_interactively(command, server)
  exec "ssh", "#{server.user}@#{server.hostname}", "-t", command
end
expand_home_dir(command, options = {}) click to toggle source

expand_home_dir('~/dir', user: 'deploy') => /home/deploy/dir

# File lib/capistrano/tweaks.rb, line 9
def expand_home_dir(command, options = {})
  "/home/#{options.fetch(:user)}#{command[1..-1]}"
end