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 +4 -4
- data/README.md +3 -1
- data/aptible-cli.gemspec +1 -1
- data/lib/aptible/cli/agent.rb +2 -0
- data/lib/aptible/cli/subcommands/logs.rb +31 -0
- data/lib/aptible/cli/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f92695aa1c51fb3389734be932a19b0a74db4cb
|
4
|
+
data.tar.gz: f0dae0641048bcf9467e0a701b10e4fd48046a4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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.
|
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
|
|
data/lib/aptible/cli/agent.rb
CHANGED
@@ -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
|
data/lib/aptible/cli/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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
|