tunnel-vmc-plugin 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  require "vmc/plugin"
2
- require File.expand_path("../tunnel", __FILE__)
2
+ require "tunnel-vmc-plugin/tunnel"
3
3
 
4
4
  VMC.Plugin(VMC::Service) do
5
5
  include VMCTunnel
@@ -29,7 +29,7 @@ class CFTunnel
29
29
  auth = create_helper
30
30
  end
31
31
 
32
- bind_to_helper unless helper_already_binds?
32
+ bind_to_helper if @service && !helper_already_binds?
33
33
 
34
34
  info = get_connection_info(auth)
35
35
 
@@ -132,7 +132,7 @@ class CFTunnel
132
132
  app.total_instances = 1
133
133
  app.memory = 64
134
134
  app.env = ["CALDECOTT_AUTH=#{token}"]
135
- app.services = [@service.name]
135
+ app.services = [@service.name] if @service
136
136
  app.create!
137
137
 
138
138
  begin
@@ -1,3 +1,3 @@
1
1
  module VMCTunnel
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tunnel-vmc-plugin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-14 00:00:00 Z
18
+ date: 2012-06-21 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: addressable