vagrant-host-path 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +19 -19
- data/Gemfile +10 -10
- data/LICENSE.txt +22 -22
- data/README.md +59 -59
- data/Rakefile +1 -1
- data/lib/vagrant-host-path.rb +2 -2
- data/lib/vagrant-host-path/legacy/config.rb +30 -30
- data/lib/vagrant-host-path/legacy/init.rb +8 -8
- data/lib/vagrant-host-path/legacy/middleware.rb +37 -37
- data/lib/vagrant-host-path/logic.rb +21 -21
- data/lib/vagrant-host-path/plugin.rb +38 -38
- data/lib/vagrant-host-path/version.rb +5 -5
- data/lib/vagrant_init.rb +1 -1
- data/vagrant-host-path.gemspec +23 -23
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecd0e673105d47e8c7afacea891b2330987ef6dd
|
4
|
+
data.tar.gz: b15d112a48335757835c78cbb2bddf7e1332a25d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a245af44f23aa32d6c7520621f11593c68285c1ac82cbf1efe5f91da0eaacc2f2ce8c4becf1af9c2b056399877a7f4ab3905f5fd6562a133cfa080419288dbcf
|
7
|
+
data.tar.gz: eddfa296074d14b15bbf80f523d8a48427e21b567eaf465071cb9715ee652516b58564bba2bf9976ba8e6098774c32d7d0793a9b95c5e89e0b1e1abd549f3182
|
data/.gitignore
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
18
|
-
Vagrantfile
|
19
|
-
.vagrant
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
Vagrantfile
|
19
|
+
.vagrant
|
data/Gemfile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gemspec
|
4
|
-
|
5
|
-
group :development do
|
6
|
-
# We depend on Vagrant for development, but we don't add it as a
|
7
|
-
# gem dependency because we expect to be installed within the
|
8
|
-
# Vagrant environment itself using `vagrant plugin`.
|
9
|
-
gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => "v1.2.7"
|
10
|
-
end
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
group :development do
|
6
|
+
# We depend on Vagrant for development, but we don't add it as a
|
7
|
+
# gem dependency because we expect to be installed within the
|
8
|
+
# Vagrant environment itself using `vagrant plugin`.
|
9
|
+
gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => "v1.2.7"
|
10
|
+
end
|
data/LICENSE.txt
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
Copyright (c) 2013 MOZGIII
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
Copyright (c) 2013 MOZGIII
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,59 +1,59 @@
|
|
1
|
-
# Vagrant Host Path
|
2
|
-
|
3
|
-
This plugin creates an environment variable (`VAGRANT_HOST_PATH` by default) with the path to the project's root dir on your host machine.
|
4
|
-
You can just replace `/vagrant` prefix of any file in your VM with the value of `VAGRANT_HOST_PATH` and you'll get the path to that same file on the host.
|
5
|
-
|
6
|
-
## Installation
|
7
|
-
|
8
|
-
If you're using Vagrant with ruby's gem:
|
9
|
-
|
10
|
-
$ gem install vagrant-host-path
|
11
|
-
|
12
|
-
Or if you installed it with an installer:
|
13
|
-
|
14
|
-
$ vagrant
|
15
|
-
|
16
|
-
## Usage
|
17
|
-
|
18
|
-
$ vagrant up
|
19
|
-
[default] VM already created. Booting if it's not already running...
|
20
|
-
...
|
21
|
-
[default] Host Path set!
|
22
|
-
...
|
23
|
-
$ vagrant ssh # or any other way you connect to the VM
|
24
|
-
|
25
|
-
And after that you can use the env var within your VM:
|
26
|
-
|
27
|
-
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)
|
28
|
-
|
29
|
-
* Documentation: https://help.ubuntu.com/
|
30
|
-
Welcome to your Vagrant-built virtual machine.
|
31
|
-
Last login: Tue Feb 26 23:22:00 2013 from 10.0.2.2
|
32
|
-
vagrant@precise32:~$ echo $VAGRANT_HOST_PATH
|
33
|
-
C:/Users/MOZGIII/Desktop/vagrant-host-path/test
|
34
|
-
|
35
|
-
## Configuration
|
36
|
-
|
37
|
-
```ruby
|
38
|
-
Vagrant::Config.run do |config|
|
39
|
-
|
40
|
-
# The environment key to set
|
41
|
-
config.host_path.env_key = "VAGRANT_HOST_PATH"
|
42
|
-
|
43
|
-
# Temp file to save path to
|
44
|
-
config.host_path.path_file = "/tmp/.vagrant-host-path"
|
45
|
-
|
46
|
-
# Profile script path
|
47
|
-
config.host_path.profile_path = "/etc/profile.d/vagrant-host-path.sh"
|
48
|
-
end
|
49
|
-
```
|
50
|
-
|
51
|
-
Have in mind that both the files get overwritten on every VM start.
|
52
|
-
|
53
|
-
## Contributing
|
54
|
-
|
55
|
-
1. Fork it
|
56
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
57
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
58
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
59
|
-
5. Create new Pull Request
|
1
|
+
# Vagrant Host Path
|
2
|
+
|
3
|
+
This plugin creates an environment variable (`VAGRANT_HOST_PATH` by default) with the path to the project's root dir on your host machine.
|
4
|
+
You can just replace `/vagrant` prefix of any file in your VM with the value of `VAGRANT_HOST_PATH` and you'll get the path to that same file on the host.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
If you're using Vagrant with ruby's gem:
|
9
|
+
|
10
|
+
$ gem install vagrant-host-path
|
11
|
+
|
12
|
+
Or if you installed it with an installer:
|
13
|
+
|
14
|
+
$ vagrant plugin install vagrant-host-path
|
15
|
+
|
16
|
+
## Usage
|
17
|
+
|
18
|
+
$ vagrant up
|
19
|
+
[default] VM already created. Booting if it's not already running...
|
20
|
+
...
|
21
|
+
[default] Host Path set!
|
22
|
+
...
|
23
|
+
$ vagrant ssh # or any other way you connect to the VM
|
24
|
+
|
25
|
+
And after that you can use the env var within your VM:
|
26
|
+
|
27
|
+
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)
|
28
|
+
|
29
|
+
* Documentation: https://help.ubuntu.com/
|
30
|
+
Welcome to your Vagrant-built virtual machine.
|
31
|
+
Last login: Tue Feb 26 23:22:00 2013 from 10.0.2.2
|
32
|
+
vagrant@precise32:~$ echo $VAGRANT_HOST_PATH
|
33
|
+
C:/Users/MOZGIII/Desktop/vagrant-host-path/test
|
34
|
+
|
35
|
+
## Configuration
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
Vagrant::Config.run do |config|
|
39
|
+
|
40
|
+
# The environment key to set
|
41
|
+
config.host_path.env_key = "VAGRANT_HOST_PATH"
|
42
|
+
|
43
|
+
# Temp file to save path to
|
44
|
+
config.host_path.path_file = "/tmp/.vagrant-host-path"
|
45
|
+
|
46
|
+
# Profile script path
|
47
|
+
config.host_path.profile_path = "/etc/profile.d/vagrant-host-path.sh"
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
Have in mind that both the files get overwritten on every VM start.
|
52
|
+
|
53
|
+
## Contributing
|
54
|
+
|
55
|
+
1. Fork it
|
56
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
57
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
58
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
59
|
+
5. Create new Pull Request
|
data/Rakefile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/vagrant-host-path.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require "vagrant-host-path/version"
|
2
|
-
require "vagrant-host-path/plugin"
|
1
|
+
require "vagrant-host-path/version"
|
2
|
+
require "vagrant-host-path/plugin"
|
@@ -1,30 +1,30 @@
|
|
1
|
-
module VagrantPlugins
|
2
|
-
module HostPath
|
3
|
-
module Legacy
|
4
|
-
class Config < Vagrant::Config::Base
|
5
|
-
attr_writer :env_key
|
6
|
-
attr_writer :path_file
|
7
|
-
attr_writer :profile_path
|
8
|
-
attr_writer :temp_upload_path
|
9
|
-
|
10
|
-
# FIXME: Defaults duplication here!
|
11
|
-
|
12
|
-
def env_key
|
13
|
-
@env_key || "VAGRANT_HOST_PATH"
|
14
|
-
end
|
15
|
-
|
16
|
-
def path_file
|
17
|
-
@path_file || "/tmp/.vagrant-host-path"
|
18
|
-
end
|
19
|
-
|
20
|
-
def profile_path
|
21
|
-
@profile_path || "/etc/profile.d/vagrant-host-path.sh"
|
22
|
-
end
|
23
|
-
|
24
|
-
def temp_upload_path
|
25
|
-
@temp_upload_path || "/tmp/vagrant-host-path-profile.sh"
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
1
|
+
module VagrantPlugins
|
2
|
+
module HostPath
|
3
|
+
module Legacy
|
4
|
+
class Config < Vagrant::Config::Base
|
5
|
+
attr_writer :env_key
|
6
|
+
attr_writer :path_file
|
7
|
+
attr_writer :profile_path
|
8
|
+
attr_writer :temp_upload_path
|
9
|
+
|
10
|
+
# FIXME: Defaults duplication here!
|
11
|
+
|
12
|
+
def env_key
|
13
|
+
@env_key || "VAGRANT_HOST_PATH"
|
14
|
+
end
|
15
|
+
|
16
|
+
def path_file
|
17
|
+
@path_file || "/tmp/.vagrant-host-path"
|
18
|
+
end
|
19
|
+
|
20
|
+
def profile_path
|
21
|
+
@profile_path || "/etc/profile.d/vagrant-host-path.sh"
|
22
|
+
end
|
23
|
+
|
24
|
+
def temp_upload_path
|
25
|
+
@temp_upload_path || "/tmp/vagrant-host-path-profile.sh"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
|
-
require "vagrant-host-path/legacy/config"
|
2
|
-
require "vagrant-host-path/legacy/middleware"
|
3
|
-
|
4
|
-
Vagrant.config_keys.register(:host_path) do
|
5
|
-
VagrantPlugins::HostPath::Legacy::Config
|
6
|
-
end
|
7
|
-
|
8
|
-
Vagrant.actions[:start].use VagrantPlugins::HostPath::Legacy::Middleware
|
1
|
+
require "vagrant-host-path/legacy/config"
|
2
|
+
require "vagrant-host-path/legacy/middleware"
|
3
|
+
|
4
|
+
Vagrant.config_keys.register(:host_path) do
|
5
|
+
VagrantPlugins::HostPath::Legacy::Config
|
6
|
+
end
|
7
|
+
|
8
|
+
Vagrant.actions[:start].use VagrantPlugins::HostPath::Legacy::Middleware
|
@@ -1,37 +1,37 @@
|
|
1
|
-
require "vagrant-host-path/logic"
|
2
|
-
|
3
|
-
module VagrantPlugins
|
4
|
-
module HostPath
|
5
|
-
module Legacy
|
6
|
-
class Middleware
|
7
|
-
include Logic
|
8
|
-
|
9
|
-
def initialize(app, env)
|
10
|
-
@app = app
|
11
|
-
end
|
12
|
-
|
13
|
-
def call(env)
|
14
|
-
@vm = env[:vm]
|
15
|
-
setup
|
16
|
-
@app.call(env)
|
17
|
-
end
|
18
|
-
|
19
|
-
protected
|
20
|
-
|
21
|
-
def sudo(command)
|
22
|
-
@vm.channel.sudo(command)
|
23
|
-
end
|
24
|
-
|
25
|
-
def config
|
26
|
-
@vm.config.host_path
|
27
|
-
end
|
28
|
-
|
29
|
-
def setup
|
30
|
-
put_path_file(config, @vm.env.cwd)
|
31
|
-
put_profile_file(config)
|
32
|
-
@vm.ui.success "Host Path set!"
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
1
|
+
require "vagrant-host-path/logic"
|
2
|
+
|
3
|
+
module VagrantPlugins
|
4
|
+
module HostPath
|
5
|
+
module Legacy
|
6
|
+
class Middleware
|
7
|
+
include Logic
|
8
|
+
|
9
|
+
def initialize(app, env)
|
10
|
+
@app = app
|
11
|
+
end
|
12
|
+
|
13
|
+
def call(env)
|
14
|
+
@vm = env[:vm]
|
15
|
+
setup
|
16
|
+
@app.call(env)
|
17
|
+
end
|
18
|
+
|
19
|
+
protected
|
20
|
+
|
21
|
+
def sudo(command)
|
22
|
+
@vm.channel.sudo(command)
|
23
|
+
end
|
24
|
+
|
25
|
+
def config
|
26
|
+
@vm.config.host_path
|
27
|
+
end
|
28
|
+
|
29
|
+
def setup
|
30
|
+
put_path_file(config, @vm.env.cwd)
|
31
|
+
put_profile_file(config)
|
32
|
+
@vm.ui.success "Host Path set!"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -1,21 +1,21 @@
|
|
1
|
-
module VagrantPlugins
|
2
|
-
module HostPath
|
3
|
-
module Logic
|
4
|
-
def put_path_file(config, cwd)
|
5
|
-
sudo("echo \"#{cwd.to_s}\" > \"#{config.path_file}\"")
|
6
|
-
end
|
7
|
-
|
8
|
-
def put_profile_file(config)
|
9
|
-
sudo("echo \"#{escape_shell(profile_file(config))}\" > \"#{config.profile_path}\"")
|
10
|
-
end
|
11
|
-
|
12
|
-
def profile_file(config)
|
13
|
-
"[ -f \"#{config.path_file}\" ] && export #{config.env_key}=\`cat \"#{config.path_file}\"\`"
|
14
|
-
end
|
15
|
-
|
16
|
-
def escape_shell(content)
|
17
|
-
content.gsub(/["`\\]/, '\\\\\0')
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
1
|
+
module VagrantPlugins
|
2
|
+
module HostPath
|
3
|
+
module Logic
|
4
|
+
def put_path_file(config, cwd)
|
5
|
+
sudo("echo \"#{cwd.to_s}\" > \"#{config.path_file}\"")
|
6
|
+
end
|
7
|
+
|
8
|
+
def put_profile_file(config)
|
9
|
+
sudo("echo \"#{escape_shell(profile_file(config))}\" > \"#{config.profile_path}\"")
|
10
|
+
end
|
11
|
+
|
12
|
+
def profile_file(config)
|
13
|
+
"[ -f \"#{config.path_file}\" ] && export #{config.env_key}=\`cat \"#{config.path_file}\"\`"
|
14
|
+
end
|
15
|
+
|
16
|
+
def escape_shell(content)
|
17
|
+
content.gsub(/["`\\]/, '\\\\\0')
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -1,38 +1,38 @@
|
|
1
|
-
begin
|
2
|
-
require "vagrant"
|
3
|
-
rescue LoadError
|
4
|
-
raise "This Vagrant plugin must be run within Vagrant."
|
5
|
-
end
|
6
|
-
|
7
|
-
# This is a sanity check to make sure no one is attempting to install
|
8
|
-
# this into an early Vagrant version.
|
9
|
-
if Vagrant::VERSION < "1.2.0"
|
10
|
-
raise "This Vagrant plugin is only compatible with Vagrant 1.2+"
|
11
|
-
end
|
12
|
-
|
13
|
-
module VagrantPlugins
|
14
|
-
module HostPath
|
15
|
-
class Plugin < Vagrant.plugin("2")
|
16
|
-
name "HostPath"
|
17
|
-
description <<-DESC
|
18
|
-
This plugin adds path to /vagrant dir as it is on the host to
|
19
|
-
the VM environment.
|
20
|
-
DESC
|
21
|
-
|
22
|
-
config(:host_path) do
|
23
|
-
require_relative "config"
|
24
|
-
Config
|
25
|
-
end
|
26
|
-
|
27
|
-
action_hook(:set_host_path_on_up, :machine_action_up) do |hook|
|
28
|
-
require_relative "middleware"
|
29
|
-
hook.append(Middleware)
|
30
|
-
end
|
31
|
-
|
32
|
-
action_hook(:set_host_path_on_reload, :machine_action_reload) do |hook|
|
33
|
-
require_relative "middleware"
|
34
|
-
hook.append(Middleware)
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
1
|
+
begin
|
2
|
+
require "vagrant"
|
3
|
+
rescue LoadError
|
4
|
+
raise "This Vagrant plugin must be run within Vagrant."
|
5
|
+
end
|
6
|
+
|
7
|
+
# This is a sanity check to make sure no one is attempting to install
|
8
|
+
# this into an early Vagrant version.
|
9
|
+
if Vagrant::VERSION < "1.2.0"
|
10
|
+
raise "This Vagrant plugin is only compatible with Vagrant 1.2+"
|
11
|
+
end
|
12
|
+
|
13
|
+
module VagrantPlugins
|
14
|
+
module HostPath
|
15
|
+
class Plugin < Vagrant.plugin("2")
|
16
|
+
name "HostPath"
|
17
|
+
description <<-DESC
|
18
|
+
This plugin adds path to /vagrant dir as it is on the host to
|
19
|
+
the VM environment.
|
20
|
+
DESC
|
21
|
+
|
22
|
+
config(:host_path) do
|
23
|
+
require_relative "config"
|
24
|
+
Config
|
25
|
+
end
|
26
|
+
|
27
|
+
action_hook(:set_host_path_on_up, :machine_action_up) do |hook|
|
28
|
+
require_relative "middleware"
|
29
|
+
hook.append(Middleware)
|
30
|
+
end
|
31
|
+
|
32
|
+
action_hook(:set_host_path_on_reload, :machine_action_reload) do |hook|
|
33
|
+
require_relative "middleware"
|
34
|
+
hook.append(Middleware)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
module VagrantPlugins
|
2
|
-
module HostPath
|
3
|
-
VERSION = "1.3.
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module VagrantPlugins
|
2
|
+
module HostPath
|
3
|
+
VERSION = "1.3.1"
|
4
|
+
end
|
5
|
+
end
|
data/lib/vagrant_init.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require "vagrant-host-path/legacy/init"
|
1
|
+
require "vagrant-host-path/legacy/init"
|
data/vagrant-host-path.gemspec
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'vagrant-host-path/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "vagrant-host-path"
|
8
|
-
spec.version = VagrantPlugins::HostPath::VERSION
|
9
|
-
spec.authors = ["MOZGIII"]
|
10
|
-
spec.email = ["mike-n@narod.ru"]
|
11
|
-
spec.description = %q{Vagrant plugin that stores the host path to your project in the environment variable in the VM.}
|
12
|
-
spec.summary = %q{The host path to your project in the environment variable in the VM for Vagrant.}
|
13
|
-
spec.homepage = "https://github.com/MOZGIII/vagrant-host-path"
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.files = `git ls-files`.split($/)
|
17
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = ["lib"]
|
20
|
-
|
21
|
-
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
-
spec.add_development_dependency "rake"
|
23
|
-
end
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'vagrant-host-path/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "vagrant-host-path"
|
8
|
+
spec.version = VagrantPlugins::HostPath::VERSION
|
9
|
+
spec.authors = ["MOZGIII"]
|
10
|
+
spec.email = ["mike-n@narod.ru"]
|
11
|
+
spec.description = %q{Vagrant plugin that stores the host path to your project in the environment variable in the VM.}
|
12
|
+
spec.summary = %q{The host path to your project in the environment variable in the VM for Vagrant.}
|
13
|
+
spec.homepage = "https://github.com/MOZGIII/vagrant-host-path"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-host-path
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MOZGIII
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.1.10
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: The host path to your project in the environment variable in the VM for Vagrant.
|