Sha256: 290bc92de449d1fcec699d7dbc39cb0f9d248f96925cc5cf46d9334de235779e

Contents?: true

Size: 543 Bytes

Versions: 45

Compression:

Stored size: 543 Bytes

Contents

Standup.script :node do
  self.description = 'Run remote shell (e.g. bash)'
  
  def run
    make_shell
  end
  
  def make_shell shell_command = ''
    return unless instance
    command = "#{ssh_string} -t '#{shell_command}'"
    bright_p command
    Kernel.exec command
  end

  protected

  def ssh_string
    return '' unless instance
    "ssh -i #{Standup::Settings.aws.keypair_file} -C -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null #{params.extra_options} #{scripts.ec2.params.ssh_user}@#{instance.external_ip}"
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
standup-0.6.9 scripts/shell.rb
standup-0.6.8 scripts/shell.rb
standup-0.6.7 scripts/shell.rb
standup-0.6.6 scripts/shell.rb
standup-0.6.5 scripts/shell.rb
standup-0.6.4 scripts/shell.rb
standup-0.6.3 scripts/shell.rb
standup-0.6.2 scripts/shell.rb
standup-0.6.1 scripts/shell.rb
standup-0.6.0 scripts/shell.rb
standup-0.5.14 scripts/shell.rb
standup-0.5.13 scripts/shell.rb
standup-0.5.11 scripts/shell.rb
standup-0.5.10 scripts/shell.rb
standup-0.5.9 scripts/shell.rb
standup-0.5.8 scripts/shell.rb
standup-0.5.7 scripts/shell.rb
standup-0.5.6 scripts/shell.rb
standup-0.5.5 scripts/shell.rb
standup-0.5.4 scripts/shell.rb