vagrant-blockwart 0.1.2 → 0.1.3

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: 9ef473ba47c6960391a1a10452d2643d1b63ca17
4
- data.tar.gz: 30e73c2aeb8a678bde5e51d3f2a35d594ba68e9a
3
+ metadata.gz: a9f85e3d60172bab86fe70ff97aab53543f5059e
4
+ data.tar.gz: 5bdf6fd8a4506c2fe16f2e7d0e09a44cbced65a3
5
5
  SHA512:
6
- metadata.gz: 6704945ac32a72a34e221ea084ed2eeb20b6e7f82bac8cfabc78458bd5f8d1ebc58784e2d171a5bb345bd10503c8430f0b83e174b1aa0751afd8289845173f07
7
- data.tar.gz: 434d7f693e2f2bd03f1ab393982b3fe0892519aef088dc35f0a3e6fae00174ad27180af084697e22e6febfd287d5267ba3fffa3e0872587248979ab8bac9a3a7
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
- return bw_cli("apply #{node}", ret_stdout=false)
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)
@@ -18,7 +18,7 @@ module VagrantPlugins
18
18
  ssh = SshConf.new
19
19
  ssh.update(config.node_host, @machine.ssh_info)
20
20
  bw = BwManage.new(config.repo_path)
21
- bw.apply(config.node_name)
21
+ bw.apply(config.node_name, config.interactive)
22
22
  end
23
23
 
24
24
  def cleanup
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Blockwart
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-blockwart
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
  - Benjamin Kendinibilir