vagrant-digitalocean 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/vagrant-digitalocean/actions/shut_down.rb +4 -2
- data/lib/vagrant-digitalocean/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: 724d07a1117b4225da06b4ee656ec01badeac142
|
4
|
+
data.tar.gz: f8d15d4ddff67d8feaa11e36ec43f64aefe9da78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5735566324ed2f030c1287df800a63732e434d7b9723a144670b9c782919f8a3185bbfccc9db128eafb62ac70a39d486042b48ed5dc0e40f6ccab709da148201
|
7
|
+
data.tar.gz: dcfee7eb49289a563e1375e1d5be2870f1005239921a5fc1d471e5f58f477d17eaf6e7b9f6255e77a8a8f79fdbe6922bbd475226eff3905e66b06f52d4425c50
|
data/README.md
CHANGED
@@ -31,6 +31,8 @@ Once the provider has been installed, you will need to configure your project to
|
|
31
31
|
|
32
32
|
```ruby
|
33
33
|
Vagrant.configure('2') do |config|
|
34
|
+
config.vm.hostname = 'dropletname.example.com'
|
35
|
+
# Alternatively, use provider.name below to set the Droplet name. config.vm.hostname takes precedence.
|
34
36
|
|
35
37
|
config.vm.provider :digital_ocean do |provider, override|
|
36
38
|
override.ssh.private_key_path = '~/.ssh/id_rsa'
|
@@ -15,11 +15,13 @@ module VagrantPlugins
|
|
15
15
|
|
16
16
|
def call(env)
|
17
17
|
# submit shutdown droplet request
|
18
|
-
result = @client.
|
18
|
+
result = @client.post("/v2/droplets/#{@machine.id}/actions", {
|
19
|
+
:type => 'shutdown'
|
20
|
+
})
|
19
21
|
|
20
22
|
# wait for request to complete
|
21
23
|
env[:ui].info I18n.t('vagrant_digital_ocean.info.shutting_down')
|
22
|
-
@client.wait_for_event(env, result['
|
24
|
+
@client.wait_for_event(env, result['action']['id'])
|
23
25
|
|
24
26
|
# refresh droplet state with provider
|
25
27
|
Provider.droplet(@machine, :refresh => true)
|
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.7.
|
4
|
+
version: 0.7.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Bender
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-12-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|