vagrant-delphix 0.1.1 → 0.1.2

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: ac167d270eba09847a9871a77b84f3ce5b386af9
4
- data.tar.gz: 021b32c54c8a948296684a29e02bb52731951656
3
+ metadata.gz: 9045bcce53bb29434dae1f6d6d187dbda846e832
4
+ data.tar.gz: bc20988049ca2e63023e57b362b71048cc3b8012
5
5
  SHA512:
6
- metadata.gz: 940688a7c8e7bfde85ab963862c528a0b9f2b15c84144cfbaf201999bbe3fc32b3b77181609a6df217d4523c413521f03ef55a02e085f006bc6b1fe9cd52a2e7
7
- data.tar.gz: 11f7bd59579b865e686aa9bc761fbd71252444acff92191b5f7873c254de8c7434b99a35b47d73d9af9f0218fdc5e0952ef190d524e75b470c83f563f33d5378
6
+ metadata.gz: 9d54f5da24dc423a3150a7be3eac23d5160361739452f27f588c2413bbf1cae08db908b54437a1979bfacc805021980d548827ec5945c89ce312e45b8abfd27a
7
+ data.tar.gz: bdcd6eae4951d46c7da4f6d5846150ebfadaeeacd5bf1c0c2e2ad3de1d88fbe8261d8ce25436a8cafdd92f2a89e204f5daef0fa8d3cc1c6b9f11d4ff97af406b
data/Gemfile.lock CHANGED
@@ -24,7 +24,7 @@ GIT
24
24
  PATH
25
25
  remote: .
26
26
  specs:
27
- vagrant-delphix (0.1.1)
27
+ vagrant-delphix (0.1.2)
28
28
  delphix_rb (~> 0.3.2)
29
29
 
30
30
  GEM
@@ -17,12 +17,12 @@ module VagrantPlugins
17
17
  @logger = Log4r::Logger.new('vagrant::delphix_engine::create_environment')
18
18
 
19
19
  @config = get_config(@machine)
20
-
20
+
21
21
  end
22
22
 
23
23
  def call(env)
24
- # skip if machine is not active on destroy action
25
- #return @app.call(env) if !@machine.id && env[:machine_action] == :destroy
24
+ # skip if plugin is not active on destroy action
25
+ return @app.call(env) if !@config.enabled
26
26
 
27
27
  # set the DE url
28
28
  Delphix.url = @config.engine_url
@@ -20,8 +20,8 @@ module VagrantPlugins
20
20
  end
21
21
 
22
22
  def call(env)
23
- # skip if machine is not active on destroy action
24
- #return @app.call(env) if !@machine.id && env[:machine_action] == :destroy
23
+ # skip if plugin is not active on destroy action
24
+ return @app.call(env) if !@config.enabled
25
25
 
26
26
  # set the DE url
27
27
  Delphix.url = @config.engine_url
@@ -20,8 +20,8 @@ module VagrantPlugins
20
20
  end
21
21
 
22
22
  def call(env)
23
- # skip if machine is not active on destroy action
24
- #return @app.call(env) if !@machine.id && env[:machine_action] == :destroy
23
+ # skip if plugin is not active on destroy action
24
+ return @app.call(env) if !@config.enabled
25
25
 
26
26
  # set the DE url
27
27
  Delphix.url = @config.engine_url
@@ -15,10 +15,6 @@ module VagrantPlugins
15
15
  require_relative 'config'
16
16
  Config
17
17
  end
18
-
19
- #action_hook(:delphix, :machine_action_up) do |hook|
20
- #hook.after(Vagrant::Action::Builtin::Provision, Action.enable_environment)
21
- #end
22
18
 
23
19
  action_hook(:delphix, :machine_action_resume) do |hook|
24
20
  hook.after(Vagrant::Action::Builtin::Provision, Action.enable_environment)
@@ -10,13 +10,14 @@ module VagrantPlugins
10
10
 
11
11
  def initialize(machine, config)
12
12
  super(machine, config)
13
-
14
13
  @config = get_config(machine)
15
-
16
14
  end
17
15
 
18
16
  def provision
19
-
17
+
18
+ # skip if plugin is not active on destroy action
19
+ return if !@config.enabled
20
+
20
21
  # set the DE url
21
22
  Delphix.url = @config.engine_url
22
23
  Delphix.debug = @config.trace
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DelphixEngine
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-delphix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2016-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler