vagrant-adam 0.1.0a → 0.2.0a

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: e9668161eab94e1522897fa5bc244a51fd49284c
4
- data.tar.gz: 5409867d7104bc25a0d4ce37960982216e0950a6
3
+ metadata.gz: e4c0beaa1292d4b780b8b5d94730d1d969b12f42
4
+ data.tar.gz: 4dc237041074be343d4c0fa5574d715156694a3b
5
5
  SHA512:
6
- metadata.gz: bdd3895180b212a3b17db283526937696a61db9f7038c492d001532a95571fd6af5cd92b7aff3dc74ba8a263473d9ec085224935f971b159ab967243b38c49eb
7
- data.tar.gz: afd7a239978e6ae4b25006986cf827c68cc14252667682ef6348e87cf2dd0375718d8a5b15d302bb5b7762c9e9bf0f58f6ed87cb9046346b2932f709b14698cd
6
+ metadata.gz: 4f1d879f44579c09931f5e3fedecfb76dbdf7e2f6ec760709579a47da558dc7132ea269ccd7530df8ef100e1381e5c2959cbf4957e8e8b5f6fe403343c09c0f2
7
+ data.tar.gz: 122d66cdc2d40e2b84ce5e055ac81c98116d99decc1a0011ce79d3e9f4039da6254d4bf77fa106025ec22004a494d26c72ff789fac3126df6a4fab472a042aa5
@@ -50,3 +50,12 @@ end
50
50
  Given(/^the environment variable (.+) is "(.+)"$/) do |variable, value|
51
51
  set_env(variable, value)
52
52
  end
53
+
54
+ Given(/^the Vagrant box is already running$/) do
55
+ run_simple('bundle exec vagrant up')
56
+ end
57
+
58
+ Given(/^the provision output should contain "(.*?)"$/) do |expected_provision_output|
59
+ run_simple('bundle exec vagrant provision')
60
+ expect(output_from('bundle exec vagrant provision')).to include(expected_provision_output)
61
+ end
@@ -16,4 +16,10 @@ Feature: vagrant-adam local file
16
16
  And a shell file 'fail_script.sh' with content of "echo 'missing single quote"
17
17
  When I run `bundle exec vagrant up`
18
18
  Then the exit status should not be 0
19
- And the output should contain "Syntax error: Unterminated quoted string"
19
+ And the output should contain "Syntax error: Unterminated quoted string"
20
+
21
+ Scenario:
22
+ Given a Vagrantfile with a adam.provision_url of "./hello_world_local_file.sh"
23
+ And a shell file 'hello_world_local_file.sh' with content of "echo 'Hello World!'"
24
+ And the Vagrant box is already running
25
+ Then the provision output should contain "Hello World"
@@ -36,6 +36,7 @@ module VagrantPlugins
36
36
  action_hook(:pre_provision_script, Plugin::ALL_ACTIONS) do |hook|
37
37
  require_relative 'action/pre_provision_script'
38
38
  hook.after(Vagrant::Action::Builtin::SyncedFolders, Action::PreProvisionScript)
39
+ hook.after(Vagrant::Action::Builtin::Provision, Action::PreProvisionScript)
39
40
  end
40
41
 
41
42
  config(:adam) do
@@ -1,6 +1,6 @@
1
1
  module VagrantPlugins
2
2
  # Define version for Gem here
3
3
  module Adam
4
- VERSION = '0.1.0a'
4
+ VERSION = '0.2.0a'
5
5
  end
6
6
  end
@@ -11,6 +11,7 @@ describe VagrantPlugins::Adam::Plugin do
11
11
  hook_proc = described_class.components.action_hooks[:__all_actions__][0]
12
12
  hook = double
13
13
  expect(hook).to receive(:after).with(Vagrant::Action::Builtin::SyncedFolders, VagrantPlugins::Adam::Action::PreProvisionScript)
14
+ expect(hook).to receive(:after).with(Vagrant::Action::Builtin::Provision, VagrantPlugins::Adam::Action::PreProvisionScript)
14
15
  hook_proc.call(hook)
15
16
  end
16
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-adam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0a
4
+ version: 0.2.0a
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Souter