Sha256: dd17c8f8a26034dcab1e0a5ad5ed269a82a0fe360e8737750d4815527ca10e5c

Contents?: true

Size: 751 Bytes

Versions: 21

Compression:

Stored size: 751 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

            desc 'ps', 'Display running processes for an app - DEPRECATED'
            app_options
            def ps
              deprecated('This command is deprecated on Aptible v2 stacks.')

              app = ensure_app(options)

              op = app.create_operation!(type: 'ps', status: 'succeeded')

              ENV['ACCESS_TOKEN'] = fetch_token
              opts = ['-o', 'SendEnv=ACCESS_TOKEN']
              exit_with_ssh_portal(op, *opts)
            end
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
aptible-cli-0.17.0 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.16.9 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.16.8 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.16.7 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.16.6 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.16.5 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.16.4 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.16.3 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.16.2 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.16.1 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.16.0 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.15.2 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.15.1 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.15.0 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.14.1 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.14.0 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.13.0 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.12.0 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.11.2 lib/aptible/cli/subcommands/ps.rb
aptible-cli-0.11.1 lib/aptible/cli/subcommands/ps.rb