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 +4 -4
- data/README.md +11 -0
- data/lib/vagrant-digitalocean/actions/setup_sudo.rb +7 -0
- data/lib/vagrant-digitalocean/version.rb +1 -1
- data/locales/en.yml +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aedf94da9c26233c99e5d5e8d860557a8550520b
|
|
4
|
+
data.tar.gz: 70f7e6468ec97e460b5d8514b596f60d9d1a3c87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/locales/en.yml
CHANGED
|
@@ -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.
|
|
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:
|
|
12
|
+
date: 2016-01-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: faraday
|