vagrant-digitalocean 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
ADDED
@@ -24,7 +24,12 @@ module VagrantPlugins
|
|
24
24
|
when :not_created
|
25
25
|
env[:ui].info I18n.t('vagrant_digital_ocean.info.not_created')
|
26
26
|
else
|
27
|
-
b.use
|
27
|
+
b.use Call, DestroyConfirm do |env2, b2|
|
28
|
+
if env2[:result]
|
29
|
+
b2.use Destroy
|
30
|
+
b2.use ProvisionerCleanup if defined?(ProvisionerCleanup)
|
31
|
+
end
|
32
|
+
end
|
28
33
|
end
|
29
34
|
end
|
30
35
|
end
|
@@ -17,14 +17,12 @@ module VagrantPlugins
|
|
17
17
|
# submit destroy droplet request
|
18
18
|
result = @client.request("/droplets/#{@machine.id}/destroy")
|
19
19
|
|
20
|
-
|
20
|
+
env[:ui].info I18n.t('vagrant_digital_ocean.info.destroying')
|
21
21
|
|
22
|
-
# wait for destroy
|
22
|
+
# wait for the destroy progress to start
|
23
23
|
@client.wait_for_event(env, result['event_id']) do |response|
|
24
|
-
|
25
|
-
|
26
|
-
end
|
27
|
-
end
|
24
|
+
break if response['event']['percentage'] != nil
|
25
|
+
end
|
28
26
|
|
29
27
|
# set the machine id to nil to cleanup local vagrant state
|
30
28
|
@machine.id = nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-digitalocean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-12-
|
12
|
+
date: 2013-12-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -67,6 +67,7 @@ extensions: []
|
|
67
67
|
extra_rdoc_files: []
|
68
68
|
files:
|
69
69
|
- .gitignore
|
70
|
+
- CHANGELOG.md
|
70
71
|
- Gemfile
|
71
72
|
- LICENSE.txt
|
72
73
|
- README.md
|
@@ -115,18 +116,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
116
|
- - ! '>='
|
116
117
|
- !ruby/object:Gem::Version
|
117
118
|
version: '0'
|
118
|
-
segments:
|
119
|
-
- 0
|
120
|
-
hash: -3657554704749346690
|
121
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
120
|
none: false
|
123
121
|
requirements:
|
124
122
|
- - ! '>='
|
125
123
|
- !ruby/object:Gem::Version
|
126
124
|
version: '0'
|
127
|
-
segments:
|
128
|
-
- 0
|
129
|
-
hash: -3657554704749346690
|
130
125
|
requirements: []
|
131
126
|
rubyforge_project:
|
132
127
|
rubygems_version: 1.8.23
|