vagrant-digitalocean 0.2.1 → 0.2.2

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.
data/README.md CHANGED
@@ -31,9 +31,6 @@ Installation of the provider requires two steps:
31
31
 
32
32
  $ vagrant plugin install vagrant-digitalocean
33
33
 
34
- 2. Install the default provider box:
35
-
36
- $ vagrant box add digital_ocean https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box
37
34
 
38
35
  **NOTE:** If you are using a Mac, you may need to install a CA bundle to enable SSL
39
36
  communication with the Digital Ocean API. It is recommended to first install
@@ -57,9 +54,12 @@ is shown below:
57
54
 
58
55
  ```ruby
59
56
  Vagrant.configure('2') do |config|
60
- config.ssh.private_key_path = '~/.ssh/id_rsa'
61
- config.vm.box = 'digital_ocean'
62
- config.vm.provider :digital_ocean do |provider|
57
+
58
+ config.vm.provider :digital_ocean do |provider, override|
59
+ override.ssh.private_key_path = '~/.ssh/id_rsa'
60
+ override.vm.box = 'digital_ocean'
61
+ override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
62
+
63
63
  provider.client_id = 'YOUR CLIENT ID'
64
64
  provider.api_key = 'YOUR API KEY'
65
65
  end
@@ -22,7 +22,7 @@ module VagrantPlugins
22
22
  .find_id(:sizes, :name => @machine.provider_config.size)
23
23
 
24
24
  image_id = @client
25
- .request('/images', { :filter => 'global' })
25
+ .request('/images')
26
26
  .find_id(:images, :name => @machine.provider_config.image)
27
27
 
28
28
  region_id = @client
@@ -35,7 +35,7 @@ module VagrantPlugins
35
35
 
36
36
  # rsync over to the guest path using the ssh info
37
37
  command = [
38
- "rsync", "--verbose", "--archive", "-z",
38
+ "rsync", "--verbose", "--archive", "-z", "--delete",
39
39
  "-e", "ssh -p #{ssh_info[:port]} -o StrictHostKeyChecking=no -i '#{ssh_info[:private_key_path]}'",
40
40
  hostpath,
41
41
  "#{ssh_info[:username]}@#{ssh_info[:host]}:#{guestpath}"]
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DigitalOcean
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
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.2.1
4
+ version: 0.2.2
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-07-19 00:00:00.000000000 Z
12
+ date: 2013-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday