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.5.3 scripts/shell.rb
standup-0.5.1 scripts/shell.rb
standup-0.5.0 scripts/shell.rb
standup-0.4.0 scripts/shell.rb
standup-0.3.37 scripts/shell.rb
standup-0.3.36 scripts/shell.rb
standup-0.3.35 scripts/shell.rb
standup-0.3.34 scripts/shell.rb
standup-0.3.33 scripts/shell.rb
standup-0.3.32 scripts/shell.rb
standup-0.3.31 scripts/shell.rb
standup-0.3.30 scripts/shell.rb
standup-0.3.29 scripts/shell.rb
standup-0.3.28 scripts/shell.rb
standup-0.3.27 scripts/shell.rb
standup-0.3.26 scripts/shell.rb
standup-0.3.25 scripts/shell.rb
standup-0.3.24 scripts/shell.rb
standup-0.3.23 scripts/shell.rb
standup-0.3.22 scripts/shell.rb