vagrant-digitalocean 0.7.9 → 0.7.10

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: 724d07a1117b4225da06b4ee656ec01badeac142
4
- data.tar.gz: f8d15d4ddff67d8feaa11e36ec43f64aefe9da78
3
+ metadata.gz: aedf94da9c26233c99e5d5e8d860557a8550520b
4
+ data.tar.gz: 70f7e6468ec97e460b5d8514b596f60d9d1a3c87
5
5
  SHA512:
6
- metadata.gz: 5735566324ed2f030c1287df800a63732e434d7b9723a144670b9c782919f8a3185bbfccc9db128eafb62ac70a39d486042b48ed5dc0e40f6ccab709da148201
7
- data.tar.gz: dcfee7eb49289a563e1375e1d5be2870f1005239921a5fc1d471e5f58f477d17eaf6e7b9f6255e77a8a8f79fdbe6922bbd475226eff3905e66b06f52d4425c50
6
+ metadata.gz: b0dd25383dc645b954830ca7fe69b7ba0001605ce8785ca7ba87324b47b45549d5e19836f240cfd6e0d3920ae06df0d229c8a97511865af33879f374280f82be
7
+ data.tar.gz: 3e59bed7443a194ed11e7df88490f52bb45e3280e5905a61ea50e41f47ed340491aa570d3a99918b3d5af65584b4cc7fa9028624ee274619ffbcd5371e279396
data/README.md CHANGED
@@ -130,6 +130,17 @@ To contribute, fork then clone the repository, and then the following:
130
130
  * `bundle _1.7.9_ exec rake test`
131
131
  6. Once you are satisfied with your changes, please submit a pull request.
132
132
 
133
+ **Testing**
134
+
135
+ 1. Build and package your newly developed code:
136
+ * `rake gem:build`
137
+ 2. Then install the packaged plugin:
138
+ * `vagrant plugin install pkg/vagrant-digitalocean-*.gem`
139
+ 3. Once you're done testing, roll-back to the latest released version:
140
+ * `vagrant plugin uninstall vagrant-digitalocean`
141
+ * `vagrant plugin install vagrant-digitalocean`
142
+ 4. Once you're satisfied developing and testing your new code, please submit a pull request for review.
143
+
133
144
  **Releasing**
134
145
 
135
146
  To release a new version of vagrant-digitalocean you will need to do the following:
@@ -21,6 +21,13 @@ module VagrantPlugins
21
21
  guest_name ||= @machine.guest.to_s.downcase
22
22
 
23
23
  case guest_name
24
+ when /debian/
25
+ if @machine.provider_config.image =~ /^debian-8/
26
+ env[:ui].info I18n.t('vagrant_digital_ocean.info.late_sudo_install_deb8')
27
+ @machine.communicate.execute(<<-'BASH')
28
+ if [ ! -x /usr/bin/sudo ] ; then apt-get update -y && apt-get install -y sudo ; fi
29
+ BASH
30
+ end
24
31
  when /redhat/
25
32
  env[:ui].info I18n.t('vagrant_digital_ocean.info.modifying_sudo')
26
33
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DigitalOcean
3
- VERSION = '0.7.9'
3
+ VERSION = '0.7.10'
4
4
  end
5
5
  end
@@ -15,6 +15,7 @@ en:
15
15
  rebuilding: "Rebuilding the droplet..."
16
16
  reloading: "Rebooting the droplet..."
17
17
  creating_user: "Creating user account: %{user}..."
18
+ late_sudo_install_deb8: "DigitalOcean's debian-8 image lacks sudo. Installing now."
18
19
  modifying_sudo: "Modifying sudoers file to remove tty requirement..."
19
20
  using_key: "Using existing SSH key: %{name}"
20
21
  creating_key: "Creating new SSH key: %{name}..."
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.9
4
+ version: 0.7.10
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-30 00:00:00.000000000 Z
12
+ date: 2016-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday