Sha256: 3176145435fd2f873b0e1cd19534371c7197b99f5ba06027e25836e8aed5b0ac
Contents?: true
Size: 860 Bytes
Versions: 2
Compression:
Stored size: 860 Bytes
Contents
require 'shellwords' module Aptible module CLI module Subcommands module Tail def self.included(thor) thor.class_eval do include Helpers::Operation include Helpers::App desc 'logs', 'Follows logs from a running app' option :app option :remote, aliases: '-r' def logs app = ensure_app(options) host = app.account.bastion_host port = app.account.dumptruck_port ENV['ACCESS_TOKEN'] = fetch_token ENV['APTIBLE_APP'] = app.handle 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aptible-cli-0.5.7 | lib/aptible/cli/subcommands/logs.rb |
aptible-cli-0.5.6 | lib/aptible/cli/subcommands/logs.rb |