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 +1 -1
- data/README.md +1 -1
- data/lib/vagrant-digitalocean/actions/setup_sudo.rb +6 -2
- data/lib/vagrant-digitalocean/version.rb +1 -1
- metadata +2 -2
data/Gemfile
CHANGED
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
|
-
|
17
|
-
|
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
|
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.
|
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
|
+
date: 2013-04-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|