aptible-cli 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 555302a26ea0adad814255ee621756959ca090bb
4
- data.tar.gz: f4537c51fe1cfaab98091da837a8cd49df5be956
3
+ metadata.gz: 9f92695aa1c51fb3389734be932a19b0a74db4cb
4
+ data.tar.gz: f0dae0641048bcf9467e0a701b10e4fd48046a4e
5
5
  SHA512:
6
- metadata.gz: db49b9a0b82ae4d19e1695e13b15bbf8b0475cf6f77241050ac4b71d3dc16f5bae1a2fbb8e124f36d1254a1a93ca9afcc12f0fb64047d0a7fd599a41014c0f0b
7
- data.tar.gz: 8ab70ff351d14416f38436edf76989291d2719c2a8a27c9c2f8d1e9213d19e624e24e5dcd0ee0f962ea650b2ab9192e69dfc20b697df911a83822e7ff83f0ec4
6
+ metadata.gz: caa9156eea7ab665a935a9377d25089a2824bb29e0c62667c095c5d77e7e44bc725d5c30c9e643f734bf31f4a82b7bd4241bc75c86b5b49e6ccb218d2eb26c1d
7
+ data.tar.gz: 38b3ac64486f0b2384c79b0f4a90b0afecce98806cd6c5e20e55ced3e6071d0e64fedee6f259fd1369c1ea490676916cab3c30d19c31835c1c82cb41edf2e5d0
data/README.md CHANGED
@@ -52,4 +52,6 @@ Commands:
52
52
 
53
53
  MIT License, see [LICENSE](LICENSE.md) for details.
54
54
 
55
- Copyright (c) 2013 [Aptible](https://www.aptible.com), Frank Macreery, and contributors.
55
+ Copyright (c) 2014 [Aptible](https://www.aptible.com) and contributors.
56
+
57
+ [<img src="https://s.gravatar.com/avatar/f7790b867ae619ae0496460aa28c5861?s=60" style="border-radius: 50%;" alt="@fancyremarker" />](https://github.com/fancyremarker)
data/aptible-cli.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.test_files = spec.files.grep(/^spec\//)
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_dependency 'aptible-api', '>= 0.5.3'
23
+ spec.add_dependency 'aptible-api', '>= 0.7.3'
24
24
  spec.add_dependency 'thor', '>= 0.19.0'
25
25
  spec.add_dependency 'git'
26
26
 
@@ -10,6 +10,7 @@ require_relative 'helpers/app'
10
10
  require_relative 'subcommands/apps'
11
11
  require_relative 'subcommands/config'
12
12
  require_relative 'subcommands/db'
13
+ require_relative 'subcommands/logs'
13
14
  require_relative 'subcommands/rebuild'
14
15
  require_relative 'subcommands/restart'
15
16
  require_relative 'subcommands/ssh'
@@ -26,6 +27,7 @@ module Aptible
26
27
  include Subcommands::Rebuild
27
28
  include Subcommands::Restart
28
29
  include Subcommands::SSH
30
+ include Subcommands::Tail
29
31
 
30
32
  desc 'version', 'Print Aptible CLI version'
31
33
  def version
@@ -0,0 +1,31 @@
1
+ require 'shellwords'
2
+
3
+ module Aptible
4
+ module CLI
5
+ module Subcommands
6
+ module Tail
7
+ def self.included(thor)
8
+ thor.class_eval do
9
+ include Helpers::Operation
10
+ include Helpers::App
11
+
12
+ desc 'logs', 'Follows logs from a running app'
13
+ option :app
14
+ def logs
15
+ app = ensure_app(options)
16
+ host = app.account.bastion_host
17
+ port = app.account.dumptruck_port
18
+
19
+ ENV['ACCESS_TOKEN'] = fetch_token
20
+ ENV['APTIBLE_APP'] = app.handle
21
+
22
+ opts = " -o 'SendEnv=*' -o StrictHostKeyChecking=no " \
23
+ '-o UserKnownHostsFile=/dev/null'
24
+ Kernel.exec "ssh #{opts} -p #{port} root@#{host}"
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module CLI
3
- VERSION = '0.4.3'
3
+ VERSION = '0.4.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-05 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-api
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.3
19
+ version: 0.7.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.5.3
26
+ version: 0.7.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -149,6 +149,7 @@ files:
149
149
  - lib/aptible/cli/subcommands/apps.rb
150
150
  - lib/aptible/cli/subcommands/config.rb
151
151
  - lib/aptible/cli/subcommands/db.rb
152
+ - lib/aptible/cli/subcommands/logs.rb
152
153
  - lib/aptible/cli/subcommands/rebuild.rb
153
154
  - lib/aptible/cli/subcommands/restart.rb
154
155
  - lib/aptible/cli/subcommands/ssh.rb