vagrant-hostmanager 1.6.1 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ebb85139ec388295e6973a2fdf6cf0838e818ef
4
- data.tar.gz: a4fef07f623c51be190f4ddd0d998ccb46ca71ff
3
+ metadata.gz: 121bc1248376867fa1c58a5041c69e85fb04a528
4
+ data.tar.gz: dd4766ae4162c0396141ed577d6733ec1ab30c4f
5
5
  SHA512:
6
- metadata.gz: 96be373e7b60d143ace0b56eb2bcf79a8178b99a818f891315f117350cd789088243253d080223db66f8003b922d12ab8b35cc6845eba894a34c30abb02181a3
7
- data.tar.gz: becfe30314c9a4a7aec3ccc0a221502bd8222615785b93bd28ba742dcae685372f9cc7e48eb1af01c16ec5c1f0541eed57dadce9b22c3373e77e4a01e5ee4499
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
- Contributions are welcome.
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. Fork it
165
- 2. Create your feature branch (`git checkout -b my-new-feature`)
166
- 3. Commit your changes (`git commit -am 'Add some feature'`)
167
- 4. Push to the branch (`git push origin my-new-feature`)
168
- 5. Create new Pull Request
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module HostManager
3
- VERSION = '1.6.1'
3
+ VERSION = '1.7.0'
4
4
  end
5
5
  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.6.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-08-06 00:00:00.000000000 Z
11
+ date: 2015-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler