Sha256: 81af60f8e3efd6a04abe205580f54cf54af211e6efe9cca19796ccfcabf77fc2
Contents?: true
Size: 908 Bytes
Versions: 3
Compression:
Stored size: 908 Bytes
Contents
require 'shellwords' module Aptible module CLI module Subcommands module Ps def self.included(thor) thor.class_eval do include Helpers::Operation include Helpers::App include Helpers::Env desc 'ps', 'Display running processes for an app' app_options def ps app = ensure_app(options) host = app.account.bastion_host port = app.account.dumptruck_port set_env('ACCESS_TOKEN', fetch_token) set_env('APTIBLE_APP', app.handle) set_env('APTIBLE_CLI_COMMAND', 'ps') opts = " -o 'SendEnv=*' -o StrictHostKeyChecking=no " \ '-o UserKnownHostsFile=/dev/null' Kernel.exec "ssh #{opts} -p #{port} root@#{host}" end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aptible-cli-0.6.3 | lib/aptible/cli/subcommands/ps.rb |
aptible-cli-0.6.2 | lib/aptible/cli/subcommands/ps.rb |
aptible-cli-0.6.1 | lib/aptible/cli/subcommands/ps.rb |