aptible-cli 0.5.4 → 0.5.5

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: eb9dfc6735786325e67752acf288b43d9ebf21a3
4
- data.tar.gz: fa7dcfac1d1eefecd10a7ae268d47a7ed379c44b
3
+ metadata.gz: 2b7b649692524fe76dd9bcb278643cf4227f6dae
4
+ data.tar.gz: 15656687281f2f6cc6445f56ba2d6872867b91b5
5
5
  SHA512:
6
- metadata.gz: b8e773b844383936d986e66d708001e745b02bc125037c484d66dc6c7ad0286cc36922c7c53eacc1e0ea2568e92dc4fc48b62b3e784af2a1e779448665b0d91e
7
- data.tar.gz: 9a1f29d08c93c330aeb442cd6352b6b9c0e2d938b8d1241198eee7d2e2be4863390131014a84239c97eb939c9bc0fc44cc985237818ee4314b47d63daff3c649
6
+ metadata.gz: 506bbbba7707cfeaf31a1fd7809e1d71102f2efecd63b45d3d0604aa5b7f498c1dbbe0353a079434ccbaa00cb79cb1a23c70752a025dd57f4c4b4d1a63354a56
7
+ data.tar.gz: c5eb749d12630e9c23451a764e5a03b405097972ff942ef8a394829ec51bb5097b2009053f7b8948217bde9a3e1e1a3b7b1bb8f1bdcf149a5754fda43a51ace0
@@ -54,6 +54,14 @@ module Aptible
54
54
  establish_connection(database, local_port)
55
55
  end
56
56
 
57
+ desc 'db:deprovision HANDLE', 'Deprovision a database'
58
+ define_method 'db:deprovision' do |handle|
59
+ database = database_from_handle(handle)
60
+ puts "Deprovisioning #{handle}..."
61
+ database.update!(status: 'deprovisioned')
62
+ database.create_operation(type: 'deprovision')
63
+ end
64
+
57
65
  private
58
66
 
59
67
  def establish_connection(database, local_port)
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module CLI
3
- VERSION = '0.5.4'
3
+ VERSION = '0.5.5'
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.4
4
+ version: 0.5.5
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-01-27 00:00:00.000000000 Z
11
+ date: 2015-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-api