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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d9a2a3aa33ab4b9852786cb94ad4697c77ea98c
4
- data.tar.gz: 56f3ffef3c5e3a51222669518bc01bd8d3f0cb55
3
+ metadata.gz: e59b96661564dbad9346832b58123e12b4577010
4
+ data.tar.gz: 3407de4dc6a45f73d362091f36fffd0c7ae58431
5
5
  SHA512:
6
- metadata.gz: 48783f9c789cf808c3776c533823a05bf9b150a69ad43021a9826547e966fec023a7e81969ccb52d2fea87e486680379db41dc13284cc32faf9d184a6bcb460b
7
- data.tar.gz: 01b1df53a0fe98d38f1aefa19371b7855fda4b4306d28bd88f8ddf824db88eab0e94a8d892a86904b3781ddf505c74e1a378f43690f56d2a357cb8eb59ba1328
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.4.3"
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
- if network[1][:id] == "ssh"
18
- network[1][:ngrok_proto] = "tcp"
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."
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Foodshow
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
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.5
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-12 00:00:00.000000000 Z
11
+ date: 2014-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler