vagrant-digitalocean 0.7.8 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7712f3d6c24ad17b4036e94c73407efc36d8f1e
4
- data.tar.gz: 97936d9df0dd3fc5b25c1d35d86143d0c757e774
3
+ metadata.gz: 724d07a1117b4225da06b4ee656ec01badeac142
4
+ data.tar.gz: f8d15d4ddff67d8feaa11e36ec43f64aefe9da78
5
5
  SHA512:
6
- metadata.gz: 30fabe81907e9ecc94198cbb2bb397cb66408eaf3700b8f2cfa8e2564e845903671f0aada4771024c71f967a2c4c53a418ae915d4d18e773d248254e0be13433
7
- data.tar.gz: cc3d5a10e27a06aee9f86c837329ff5d86c98dbee8976bebb8508dd316224da662b336d6b8d2bde0deaf98b44859d6a650ee03d004ae1af67d69d88954550667
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.request("/droplets/#{@machine.id}/shutdown")
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['event_id'])
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)
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DigitalOcean
3
- VERSION = '0.7.8'
3
+ VERSION = '0.7.9'
4
4
  end
5
5
  end
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.8
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-10-07 00:00:00.000000000 Z
12
+ date: 2015-12-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday