vagrant-databags 0.1.0 → 0.1.1

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: 30581440f80dde213e556f44cfd4459e53729b5d
4
- data.tar.gz: dcb5d08117ca2410703745547e9602f06814223f
3
+ metadata.gz: 13350ca1d1662c8ff21913b6c1de04894ee27b15
4
+ data.tar.gz: f1399034a85682df493bd27e69f836d0a4517c6b
5
5
  SHA512:
6
- metadata.gz: 4f5fc1edde8ec88940d9de03bf7656df7f148db3502c81e73fca383c12d66ddbe90baab7ff4e2a0658694d39a3f297890f99a2d384f325998c9fa41485edeac5
7
- data.tar.gz: e385594ef0fb819b9e9582e52e886d12ceb2b9e144a0928f26314f089b22de24a90ffab27ff473fd3c8081ae0c42789ab37befb25bf476bd8c312e669a0606ce
6
+ metadata.gz: 5b6a516e87821822734d25fd4f1668ef12fb0a793fec1d8b660c828004f4581c00197fd2f2c2cb5ad35741b1074eecb3d25dddb1a3abb1dab31a1ad4b0e725d6
7
+ data.tar.gz: 1f47b2824837eb99e11bca68b404aa4835ad529059bc0ec92396991f717972faba6e8889ebeb3f629d9965319242e0a223d8d30dc8ad705c5babe6d0b16be579
@@ -1,5 +1,9 @@
1
1
  # vagrant-databags Changelog
2
2
 
3
+ ## 0.1.1
4
+
5
+ Changed event hooks in order to make the plugin compatible with othe plugins such as [vagrant-managed-servers](https://github.com/tknerr/vagrant-managed-servers).
6
+
3
7
  ## 0.1.0
4
8
 
5
9
  Initial release.
data/README.md CHANGED
@@ -29,7 +29,7 @@ Vagrant.configure("2") do |config|
29
29
  # Hash of map lambda's per data bag.
30
30
  # Each data bag needs a lambda with 2 parameters: items and env and should return the new hash of data bag items
31
31
  # Parameter items is a hash of items (per item's id)
32
- # Parameter env is vagrant-lifecycle plugin's middleware environment hash with various interesting keys:
32
+ # Parameter env is vagrant-databags plugin's middleware environment hash with various interesting keys:
33
33
  # * env[:ui] is an instance of ::Vagrant::UI::Interface
34
34
  # * env[:machine] is an instance of ::Vagrant::Machine etc.
35
35
  config.databags.map = {
@@ -8,13 +8,12 @@ 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.after Vagrant::Action::Builtin::ConfigValidate, Action::LoadDataBags
12
- hook.before Vagrant::Action::Builtin::Provision, Action::LoadDataBags
11
+ hook.before(Vagrant::Action::Builtin::Provision, Action::LoadDataBags)
12
+ hook.after(Vagrant::Action::Builtin::Provision, Action::PersistDataBags)
13
13
  end
14
14
  end
15
15
 
16
16
  action_hook(:databags_provision, :provisioner_run) do |hook|
17
- hook.before :run_provisioner, Action::PersistDataBags
18
17
  hook.after :run_provisioner, Action::CleanDataBags
19
18
  end
20
19
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DataBags
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
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.0
4
+ version: 0.1.1
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-06-18 00:00:00.000000000 Z
11
+ date: 2018-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler