vagrant-digitalocean 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git', :tag => 'v1.1.5'
3
+ gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git', :tag => 'v1.2.1'
4
4
  gemspec
data/README.md CHANGED
@@ -48,7 +48,7 @@ to use it. The most basic `Vagrantfile` to create a droplet on Digital Ocean
48
48
  is shown below:
49
49
 
50
50
  ```ruby
51
- Vagrant.configure('2') do
51
+ Vagrant.configure('2') do |config|
52
52
  config.ssh.private_key_path = '~/.ssh/id_rsa'
53
53
  config.vm.box = 'digital_ocean'
54
54
  config.vm.provider :digital_ocean do |provider|
@@ -13,8 +13,12 @@ module VagrantPlugins
13
13
  user = @machine.config.ssh.username
14
14
  @machine.config.ssh.username = 'root'
15
15
 
16
- case @machine.guest.to_s
17
- when /RedHat/
16
+ # check for guest name available in Vagrant 1.2 first
17
+ guest_name = @machine.guest.name if @machine.guest.respond_to?(:name)
18
+ guest_name ||= @machine.guest.to_s.downcase
19
+
20
+ case guest_name
21
+ when /redhat/
18
22
  env[:ui].info I18n.t('vagrant_digital_ocean.info.modifying_sudo')
19
23
 
20
24
  # disable tty requirement for sudo
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DigitalOcean
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
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.1.0
4
+ version: 0.1.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-04-12 00:00:00.000000000 Z
12
+ date: 2013-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday