vagrant-databags 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 202cb89d7f2caf83ebc68f9ea67ecbf550701d71
4
- data.tar.gz: 50eff0530dee13e080094757fdf3e51891b7d00e
3
+ metadata.gz: c724879ec150cb1e877c9be2de2839fdb12a5501
4
+ data.tar.gz: a64489bae5262f01aa153ff5243ed3a1d2082c8e
5
5
  SHA512:
6
- metadata.gz: 21844a72603540fbbcd59a017b3db237de5a09a246282cef6d3bb384b5bd12a4d33ba950cfe17f93777778bf2440a1473082dc385464bf12d9fbd9fc28d1937c
7
- data.tar.gz: 48d8d681b04bce61fb7b7b7884e072f445cb73aea58510954ec4d69f04e4986c27d400141c2ef328155ff1f7a4379340c63a70a54cc77ae3a8d0bf55acc4cc07
6
+ metadata.gz: bb1b1e33946cc54524df895339143b54b170da0a913669019197ff5b09adeb241e6bf9957051730dca7674836d9ad6b11d36c60f21ef3cb1aac048027e23cc3a
7
+ data.tar.gz: b70dc809db76a9397d1f82165d8bfd4e2923c6d589eb6d47f1a1cbc74ea7bc249ac2853c19242d4197fb97097b0b0a0089021416cdae0b519cbda5e64a031f05
@@ -1,5 +1,9 @@
1
1
  # vagrant-databags Changelog
2
2
 
3
+ ## 0.1.3
4
+
5
+ Fix hook execution order on vagrant 2.1.3 (and higher) with vagrant-lifecycle plugin installed.
6
+
3
7
  ## 0.1.2
4
8
 
5
9
  Bug fixes:
@@ -33,7 +33,7 @@ GIT
33
33
  PATH
34
34
  remote: .
35
35
  specs:
36
- vagrant-databags (0.1.2)
36
+ vagrant-databags (0.1.3)
37
37
 
38
38
  GEM
39
39
  remote: https://rubygems.org/
@@ -8,7 +8,11 @@ module VagrantPlugins
8
8
 
9
9
  [:machine_action_up, :machine_action_reload, :machine_action_provision].each do |action|
10
10
  action_hook(:databags_provision, action) do |hook|
11
- hook.before(Vagrant::Action::Builtin::Provision, Action::LoadDataBags)
11
+ if ::VagrantPlugins.const_defined?(:Lifecycle) && (Vagrant.has_plugin? 'vagrant-lifecycle')
12
+ hook.before(VagrantPlugins::Lifecycle::Action::EvalLifecycleRunList, Action::LoadDataBags)
13
+ else
14
+ hook.before(Vagrant::Action::Builtin::Provision, Action::LoadDataBags)
15
+ end
12
16
  hook.after(Vagrant::Action::Builtin::Provision, Action::PersistDataBags)
13
17
  end
14
18
  end
@@ -18,8 +22,8 @@ module VagrantPlugins
18
22
  end
19
23
 
20
24
  action_hook(:databags_provision, :machine_action_destroy) do |hook|
21
- hook.before Vagrant::Action::Builtin::ProvisionerCleanup, Action::DestroyDataBags
22
- # hook.before Vagrant::Action::Builtin::DestroyConfirm, Plugin.provisioner_destroy
25
+ hook.before Vagrant::Action::Builtin::ProvisionerCleanup, Action::DestroyDataBags
26
+ # hook.before Vagrant::Action::Builtin::DestroyConfirm, Plugin.provisioner_destroy
23
27
  end
24
28
 
25
29
  config(:databags) do
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DataBags
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-databags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikola Stojiljkovic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-30 00:00:00.000000000 Z
11
+ date: 2018-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler