aptible-cli 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/aptible-cli.gemspec +4 -0
- data/lib/aptible/cli/agent.rb +0 -2
- data/lib/aptible/cli/resource_formatter.rb +6 -0
- data/lib/aptible/cli/version.rb +1 -1
- data/spec/fabricators/database_disk_fabricator.rb +7 -0
- data/spec/fabricators/database_fabricator.rb +2 -0
- metadata +5 -4
- data/lib/aptible/cli/subcommands/ps.rb +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b10127dfc01ec4af08021f37da130738584bd5468298e7519ba4ec49b87d6dd
|
4
|
+
data.tar.gz: 785eb00b9009419d7e952c344c642cb831fbd96c10d68b680b3bda68231d35f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 749b640447638c67ff246dcf8f1fcff049248d08870d2012165b9c7694fd65038533cb365f03b734bac593f9a953ce7ba5e5ce074ef4165ce2132961e9baecea
|
7
|
+
data.tar.gz: 4ebfa45ebe3cfebbaa8abd6306414539c4e32dee645f7146b93ba081fe61c2b8a8aba5a5e540cc607a7d8b7fcb65bee04b4700ddd2698fe211458103fc1ec9bc
|
data/README.md
CHANGED
@@ -72,7 +72,6 @@ Commands:
|
|
72
72
|
aptible login # Log in to Aptible
|
73
73
|
aptible logs [--app APP | --database DATABASE] # Follows logs from a running app or database
|
74
74
|
aptible operation:cancel OPERATION_ID # Cancel a running operation
|
75
|
-
aptible ps # Display running processes for an app - DEPRECATED
|
76
75
|
aptible rebuild # Rebuild an app, and restart its services
|
77
76
|
aptible restart # Restart all services associated with an app
|
78
77
|
aptible services # List Services for an App
|
data/aptible-cli.gemspec
CHANGED
@@ -28,7 +28,11 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_dependency 'git'
|
29
29
|
spec.add_dependency 'term-ansicolor'
|
30
30
|
spec.add_dependency 'chronic_duration', '~> 0.10.6'
|
31
|
+
|
32
|
+
# Temporarily pin ffi until https://github.com/ffi/ffi/issues/868 is fixed
|
33
|
+
spec.add_dependency 'ffi', '<= 1.14.1' if Gem.win_platform?
|
31
34
|
spec.add_dependency 'win32-process' if Gem.win_platform?
|
35
|
+
|
32
36
|
spec.add_dependency 'activesupport', '>= 4.0', '< 6.0'
|
33
37
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
34
38
|
spec.add_development_dependency 'aptible-tasks', '~> 0.5.8'
|
data/lib/aptible/cli/agent.rb
CHANGED
@@ -25,7 +25,6 @@ require_relative 'subcommands/db'
|
|
25
25
|
require_relative 'subcommands/domains'
|
26
26
|
require_relative 'subcommands/environment'
|
27
27
|
require_relative 'subcommands/logs'
|
28
|
-
require_relative 'subcommands/ps'
|
29
28
|
require_relative 'subcommands/rebuild'
|
30
29
|
require_relative 'subcommands/deploy'
|
31
30
|
require_relative 'subcommands/restart'
|
@@ -50,7 +49,6 @@ module Aptible
|
|
50
49
|
include Subcommands::Domains
|
51
50
|
include Subcommands::Environment
|
52
51
|
include Subcommands::Logs
|
53
|
-
include Subcommands::Ps
|
54
52
|
include Subcommands::Rebuild
|
55
53
|
include Subcommands::Deploy
|
56
54
|
include Subcommands::Restart
|
@@ -82,6 +82,7 @@ module Aptible
|
|
82
82
|
node.value('handle', database.handle)
|
83
83
|
|
84
84
|
node.value('type', database.type)
|
85
|
+
node.value('version', database.database_image.version)
|
85
86
|
node.value('status', database.status)
|
86
87
|
|
87
88
|
node.value('connection_url', database.connection_url)
|
@@ -92,6 +93,11 @@ module Aptible
|
|
92
93
|
end
|
93
94
|
end
|
94
95
|
attach_account(node, account)
|
96
|
+
|
97
|
+
node.value('disk_type', database.disk.ebs_volume_type)
|
98
|
+
node.value('disk_size', database.disk.size)
|
99
|
+
node.value('container_size', \
|
100
|
+
database.service.container_memory_limit_mb)
|
95
101
|
end
|
96
102
|
|
97
103
|
def inject_credential(node, credential)
|
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.17.
|
4
|
+
version: 0.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aptible-resource
|
@@ -300,7 +300,6 @@ files:
|
|
300
300
|
- lib/aptible/cli/subcommands/inspect.rb
|
301
301
|
- lib/aptible/cli/subcommands/logs.rb
|
302
302
|
- lib/aptible/cli/subcommands/operation.rb
|
303
|
-
- lib/aptible/cli/subcommands/ps.rb
|
304
303
|
- lib/aptible/cli/subcommands/rebuild.rb
|
305
304
|
- lib/aptible/cli/subcommands/restart.rb
|
306
305
|
- lib/aptible/cli/subcommands/services.rb
|
@@ -341,6 +340,7 @@ files:
|
|
341
340
|
- spec/fabricators/certificate_fabricator.rb
|
342
341
|
- spec/fabricators/configuration_fabricator.rb
|
343
342
|
- spec/fabricators/database_credential_fabricator.rb
|
343
|
+
- spec/fabricators/database_disk_fabricator.rb
|
344
344
|
- spec/fabricators/database_fabricator.rb
|
345
345
|
- spec/fabricators/database_image_fabricator.rb
|
346
346
|
- spec/fabricators/operation_fabricator.rb
|
@@ -376,7 +376,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
376
376
|
- !ruby/object:Gem::Version
|
377
377
|
version: '0'
|
378
378
|
requirements: []
|
379
|
-
rubygems_version: 3.0.
|
379
|
+
rubygems_version: 3.0.3
|
380
380
|
signing_key:
|
381
381
|
specification_version: 4
|
382
382
|
summary: Command-line interface for Aptible services
|
@@ -415,6 +415,7 @@ test_files:
|
|
415
415
|
- spec/fabricators/certificate_fabricator.rb
|
416
416
|
- spec/fabricators/configuration_fabricator.rb
|
417
417
|
- spec/fabricators/database_credential_fabricator.rb
|
418
|
+
- spec/fabricators/database_disk_fabricator.rb
|
418
419
|
- spec/fabricators/database_fabricator.rb
|
419
420
|
- spec/fabricators/database_image_fabricator.rb
|
420
421
|
- spec/fabricators/operation_fabricator.rb
|
@@ -1,30 +0,0 @@
|
|
1
|
-
require 'shellwords'
|
2
|
-
|
3
|
-
module Aptible
|
4
|
-
module CLI
|
5
|
-
module Subcommands
|
6
|
-
module Ps
|
7
|
-
def self.included(thor)
|
8
|
-
thor.class_eval do
|
9
|
-
include Helpers::Operation
|
10
|
-
include Helpers::App
|
11
|
-
|
12
|
-
desc 'ps', 'Display running processes for an app - DEPRECATED'
|
13
|
-
app_options
|
14
|
-
def ps
|
15
|
-
deprecated('This command is deprecated on Aptible v2 stacks.')
|
16
|
-
|
17
|
-
app = ensure_app(options)
|
18
|
-
|
19
|
-
op = app.create_operation!(type: 'ps', status: 'succeeded')
|
20
|
-
|
21
|
-
ENV['ACCESS_TOKEN'] = fetch_token
|
22
|
-
opts = ['-o', 'SendEnv=ACCESS_TOKEN']
|
23
|
-
exit_with_ssh_portal(op, *opts)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|