Class: Capistrano::Configuration::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/scm/s3_archive.rb

Instance Method Summary collapse

Instance Method Details

#login_user_atObject



160
161
162
163
# File 'lib/capistrano/scm/s3_archive.rb', line 160

def 
  user = [user, ssh_options[:user]].compact.first
  user ? "#{user}@" : ''
end

#ssh_key_optionObject



165
166
167
168
# File 'lib/capistrano/scm/s3_archive.rb', line 165

def ssh_key_option
  key = [keys, ssh_options[:keys]].flatten.compact.first
  key ? "-i #{key}" : ''
end

#ssh_port_optionObject



170
171
172
# File 'lib/capistrano/scm/s3_archive.rb', line 170

def ssh_port_option
  port ? "-p #{port}" : ''
end