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 +4 -4
- data/lib/aptible/cli/subcommands/db.rb +8 -0
- data/lib/aptible/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b7b649692524fe76dd9bcb278643cf4227f6dae
|
4
|
+
data.tar.gz: 15656687281f2f6cc6445f56ba2d6872867b91b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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.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-
|
11
|
+
date: 2015-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aptible-api
|