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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4c0beaa1292d4b780b8b5d94730d1d969b12f42
|
4
|
+
data.tar.gz: 4dc237041074be343d4c0fa5574d715156694a3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"
|
data/lib/vagrant-adam/plugin.rb
CHANGED
@@ -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
|
data/lib/vagrant-adam/version.rb
CHANGED
@@ -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
|