vagrant-foodshow 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -4
- data/lib/vagrant-foodshow/action/start.rb +11 -5
- data/lib/vagrant-foodshow/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: e59b96661564dbad9346832b58123e12b4577010
|
4
|
+
data.tar.gz: 3407de4dc6a45f73d362091f36fffd0c7ae58431
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c4d813475f020b8a65a8570569b5b28aff190bf9b9fb16661f13a3247eed93adea472f73344aa063387ab0c78b2927116a7d4d853eea387a4c07d77ed7584e0
|
7
|
+
data.tar.gz: 7601a43d090138b304ec27fed6e0538cfeeb6c3b62f13de844bfa34b5b5ad499ed94fe5215014913098c3e7e14db9338dae3ccf0a39d393baad790019ef64412
|
data/Gemfile
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
# Specify your gem's dependencies in vagrant-foodshow.gemspec
|
4
|
-
gemspec
|
5
|
-
|
6
3
|
gem 'rake'
|
7
4
|
|
8
5
|
group :development do
|
9
|
-
gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => "v1.
|
6
|
+
gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => "v1.5.1"
|
7
|
+
end
|
8
|
+
|
9
|
+
group :plugins do
|
10
|
+
gemspec
|
10
11
|
end
|
@@ -10,13 +10,19 @@ module VagrantPlugins
|
|
10
10
|
@app.call(env)
|
11
11
|
|
12
12
|
return unless env[:machine].config.foodshow.enabled?
|
13
|
+
|
14
|
+
if env[:machine].config.foodshow.forward_ssh?
|
15
|
+
env[:machine].config.foodshow.tunnel(
|
16
|
+
env[:machine].ssh_info[:port],
|
17
|
+
"tcp",
|
18
|
+
:host => env[:machine].ssh_info[:host]
|
19
|
+
)
|
20
|
+
end
|
21
|
+
|
13
22
|
env[:machine].config.vm.networks.each do |network|
|
14
|
-
if network[0] == :forwarded_port
|
15
|
-
if network[1][:ngrok_proto] or (network[1][:id] == "ssh" && env[:machine].config.foodshow.forward_ssh?)
|
16
23
|
|
17
|
-
|
18
|
-
|
19
|
-
end
|
24
|
+
if network[0] == :forwarded_port
|
25
|
+
if network[1][:ngrok_proto]
|
20
26
|
|
21
27
|
if network[1][:protocol] != "tcp"
|
22
28
|
env[:ui].error "Can't tunnel port #{network[1][:host]}, only tcp protocol supported. Skipping."
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-foodshow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikita Borzykh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|