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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4d9a2c5e7a80842934a122c1a11527ef05c1395
4
- data.tar.gz: 58467bec285d73b6931fef00cb3b1f024b04ec08
3
+ metadata.gz: 580e4917c4eca286e6bfba5d0b7ab378c2f9c623
4
+ data.tar.gz: 5bc8df56bad44ee8e95b4a5005d57544522fb468
5
5
  SHA512:
6
- metadata.gz: ab3bfc0457f47e32db4082fc86b039426664849528b7146886c7365b7983c09bece8afd360b7bcca230f4a5dd767d499c717a98d9624b83a7ea50f846745a8ee
7
- data.tar.gz: c03299b36d7951e4c4d8e42bda9ab949df13c5a3d64237532905c1508fc4ae37343ce9b74002c813922c57955d028a33e8c9a9d6e007264f3fe69732e5b3fbb7
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
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module CLI
3
- VERSION = '0.5.9'
3
+ VERSION = '0.5.10'
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.5.9
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-07-13 00:00:00.000000000 Z
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.8
213
+ rubygems_version: 2.4.5
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: Command-line interface for Aptible services