vagrant-blockwart 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9f85e3d60172bab86fe70ff97aab53543f5059e
|
4
|
+
data.tar.gz: 5bdf6fd8a4506c2fe16f2e7d0e09a44cbced65a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b907acb32c799387e7e4131cce206e122592ba9457a646bef82539e8447ae52d997dab867d4adc23e1bd5224ef98816821c202a84c428f7bf7f67c1d5e9774a5
|
7
|
+
data.tar.gz: 4cd992b431ea632ccd34fb9471570e08348d1108d83cc9f004f14b1836787f691afa7c743be065ce35c378c4f73e9d7daadef756e9569c86e2d7ee064e1f1326
|
@@ -29,11 +29,15 @@ module VagrantPlugins
|
|
29
29
|
return nodes.split("\n")
|
30
30
|
end
|
31
31
|
|
32
|
-
def apply(node)
|
32
|
+
def apply(node, interactive=false)
|
33
33
|
node = node.gsub(/[^a-zA-Z0-9\-\_\.]/,'')
|
34
|
-
|
34
|
+
if interactive
|
35
|
+
return bw_cli("apply #{node} -i", ret_stdout=false)
|
36
|
+
else
|
37
|
+
return bw_cli("apply #{node}", ret_stdout=false)
|
38
|
+
end
|
35
39
|
end
|
36
40
|
|
37
41
|
end
|
38
42
|
end
|
39
|
-
end
|
43
|
+
end
|
@@ -4,17 +4,21 @@ module VagrantPlugins
|
|
4
4
|
attr_accessor :repo_path
|
5
5
|
attr_accessor :node_name
|
6
6
|
attr_accessor :node_host
|
7
|
+
attr_accessor :interactive
|
8
|
+
|
7
9
|
|
8
10
|
def initialize
|
9
11
|
@repo_path = UNSET_VALUE
|
10
12
|
@node_name = UNSET_VALUE
|
11
13
|
@node_host = UNSET_VALUE
|
14
|
+
@interactive = UNSET_VALUE
|
12
15
|
end
|
13
16
|
|
14
17
|
def finalize!
|
15
18
|
@repo_path = "blockwart/" if @repo_path == UNSET_VALUE
|
16
19
|
@node_name = nil if @node_name == UNSET_VALUE
|
17
20
|
@node_host = nil if @node_host == UNSET_VALUE
|
21
|
+
@interactive = false if @interactive == UNSET_VALUE
|
18
22
|
end
|
19
23
|
|
20
24
|
def validate(machine)
|