vagrant-hostmanager 1.6.1 → 1.7.0
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 +31 -6
- data/lib/vagrant-hostmanager/hosts_file/updater.rb +2 -0
- data/lib/vagrant-hostmanager/version.rb +1 -1
- 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: 121bc1248376867fa1c58a5041c69e85fb04a528
|
4
|
+
data.tar.gz: dd4766ae4162c0396141ed577d6733ec1ab30c4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af705fe74b172461d276b554d9a610d31ae311d9cedc892280e91f979c31b29df854a6ded2b0c156294c2017ff5151bd65975bcb734a28432502a18fe2a3df3c
|
7
|
+
data.tar.gz: d8b206c2ee441e96a303cf90407a79fa7bf47087be8bb4da14e1342548fb9eb94e3ec28b81bd6f354b6296fceda6cb60ab5450f92040eb907e4847850adb7f14
|
data/README.md
CHANGED
@@ -139,6 +139,10 @@ elevated privileges. If hostmanager detects that it cannot overwrite the file,
|
|
139
139
|
it will attempt to do so with elevated privileges, causing the
|
140
140
|
[UAC](http://en.wikipedia.org/wiki/User_Account_Control) prompt to appear.
|
141
141
|
|
142
|
+
To avoid the UAC prompt, open ```%WINDIR%\System32\drivers\etc\``` in
|
143
|
+
Explorer, right-click the hosts file, go to Properties > Security > Edit
|
144
|
+
and give your user Modify permission.
|
145
|
+
|
142
146
|
### UAC limitations
|
143
147
|
|
144
148
|
Due to limitations caused by UAC, cancelling out of the UAC prompt will not cause any
|
@@ -157,12 +161,33 @@ rake gem:build
|
|
157
161
|
vagrant plugin install pkg/vagrant-hostmanager-*.gem
|
158
162
|
```
|
159
163
|
|
164
|
+
|
160
165
|
Contribute
|
161
166
|
----------
|
162
|
-
|
167
|
+
To contribute, fork then clone the repository, and then the following:
|
168
|
+
|
169
|
+
**Developing**
|
170
|
+
|
171
|
+
1. Install [Bundler](http://bundler.io/)
|
172
|
+
2. Currently the Bundler version is locked to 1.6.9, please install this version.
|
173
|
+
* `sudo gem install bundler -v '1.6.9'`
|
174
|
+
3. Then install vagrant-hostmanager dependancies:
|
175
|
+
* `bundle _1.6.9_ install`
|
176
|
+
|
177
|
+
**Releasing**
|
178
|
+
|
179
|
+
To release a new version of vagrant-hostmanager you will need to do the following:
|
180
|
+
|
181
|
+
*(only contributors of the GitHub repo and owners of the project at RubyGems will have rights to do this)*
|
163
182
|
|
164
|
-
1.
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
183
|
+
1. First, bump the version in ~/lib/vagrant-hostmanager/version.rb:
|
184
|
+
* Follow [Semantic Versioning](http://semver.org/).
|
185
|
+
2. Then, create a matching GitHub Release (this will also create a tag):
|
186
|
+
* Preface the version number with a `v`.
|
187
|
+
* https://github.com/smdahlen/vagrant-hostmanager/releases
|
188
|
+
3. You will then need to build and push the new gem to RubyGems:
|
189
|
+
* `rake gem:build`
|
190
|
+
* `gem push pkg/vagrant-hostmanager-1.6.1.gem`
|
191
|
+
4. Then, when John Doe runs the following, they will receive the updated vagrant-hostmanager plugin:
|
192
|
+
* `vagrant plugin update`
|
193
|
+
* `vagrant plugin update vagrant-hostmanager`
|
@@ -38,6 +38,8 @@ module VagrantPlugins
|
|
38
38
|
machine.communicate.upload(file, '/tmp/hosts')
|
39
39
|
if windir
|
40
40
|
machine.communicate.sudo("#{move_cmd} /tmp/hosts/hosts.#{machine.name} #{realhostfile}")
|
41
|
+
elsif machine.communicate.test('test -f /.dockerinit')
|
42
|
+
machine.communicate.sudo("cat /tmp/hosts > #{realhostfile}")
|
41
43
|
else
|
42
44
|
machine.communicate.sudo("#{move_cmd} /tmp/hosts #{realhostfile}")
|
43
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-hostmanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shawn Dahlen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|