aptible-cli 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aptible/cli/subcommands/apps.rb +8 -1
- data/lib/aptible/cli/subcommands/db.rb +1 -1
- data/lib/aptible/cli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 580e4917c4eca286e6bfba5d0b7ab378c2f9c623
|
4
|
+
data.tar.gz: 5bc8df56bad44ee8e95b4a5005d57544522fb468
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1edfa255af26d96cb4bc391dd11f85fcc26251dfd93ff78fe168ba04aea722ea46682ae66f77accec7565c2465fc6cbe8c1244601a4e20cc6bdcec7b01e8526
|
7
|
+
data.tar.gz: e9f6a39db2b6842150f2bfade712a004ba064f5c2dd561b9b55caf3ca6590b90fef918794ba787cad1fc838e37a137c2fb3f59fc23fa508e1de5399afde2252c
|
@@ -40,7 +40,6 @@ module Aptible
|
|
40
40
|
|
41
41
|
desc 'apps:scale TYPE NUMBER', 'Scale app to NUMBER of instances'
|
42
42
|
option :app
|
43
|
-
option :account
|
44
43
|
define_method 'apps:scale' do |type, n|
|
45
44
|
num = Integer(n)
|
46
45
|
app = ensure_app(options)
|
@@ -49,6 +48,14 @@ module Aptible
|
|
49
48
|
poll_for_success(op)
|
50
49
|
say "Scaled #{app.handle} to #{num} instances."
|
51
50
|
end
|
51
|
+
|
52
|
+
option :app
|
53
|
+
desc 'apps:deprovision', 'Deprovision an app'
|
54
|
+
define_method 'apps:deprovision' do
|
55
|
+
app = ensure_app(options)
|
56
|
+
say "Deprovisioning #{app.handle}..."
|
57
|
+
app.create_operation!(type: 'deprovision')
|
58
|
+
end
|
52
59
|
end
|
53
60
|
end
|
54
61
|
end
|
@@ -64,7 +64,7 @@ module Aptible
|
|
64
64
|
database = database_from_handle(handle)
|
65
65
|
say "Deprovisioning #{handle}..."
|
66
66
|
database.update!(status: 'deprovisioned')
|
67
|
-
database.create_operation(type: 'deprovision')
|
67
|
+
database.create_operation!(type: 'deprovision')
|
68
68
|
end
|
69
69
|
|
70
70
|
private
|
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.5.
|
4
|
+
version: 0.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aptible-api
|
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
210
|
version: '0'
|
211
211
|
requirements: []
|
212
212
|
rubyforge_project:
|
213
|
-
rubygems_version: 2.4.
|
213
|
+
rubygems_version: 2.4.5
|
214
214
|
signing_key:
|
215
215
|
specification_version: 4
|
216
216
|
summary: Command-line interface for Aptible services
|