vagrant-guests-clearlinux 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: 984ceeb08a0bb8b10c04018ed828ece4e0bb9265b87e72602f8ca362af15b48e
4
- data.tar.gz: 2d71179c68c9a8d29ef7753316026c2b3c45293a07f2999268f57e6a7ff1ac9e
3
+ metadata.gz: dfa5f951d32b52a569a44c55a878f37f39183a39634037301e3118ff9346814e
4
+ data.tar.gz: 95eb0ab44c67df88572012361b8a18d6a21cdb5cf746b8c1bfe3125b8b814860
5
5
  SHA512:
6
- metadata.gz: 6d64aa2810b70b363e86ef283177ca9df7442d1637f314c642f69fe1ca651777a543265b5d982e87a06108d4cbbf60ad9555d382d11d25fb02e7117f467810bc
7
- data.tar.gz: 96826f4df7b84b111b0bdaf8adb8233f0c12eb47ff902417a7ea7cd1080b2841d0c526408c450554fc566848a7836c773112b780123a20bebb847f575011319a
6
+ metadata.gz: cd6b8a1f6126c0cdc75effb2b7f58200ec3186458d35a2de754f148478e177064d73575ba17a3895fe9c5a8dd75749034e834814e02bba2329c58d68e08927c3
7
+ data.tar.gz: 86423cc5cbd49f48f81e1958d30478519698b68ea82af7c683b7ffb37bea7ca4a5ae8ea146c8d1912d849a1cba260d80239843e229611c8c00020377e85ffb52
@@ -19,33 +19,25 @@ module VagrantPlugins
19
19
  end
20
20
  def bundles=(bundles)
21
21
  if bundles.kind_of?(Array)
22
- @bundles = Array.new(bundles)
22
+ @bundles = bundles.join(" ")
23
23
  else
24
- @bundles = [ bundles ]
24
+ @bundles = bundles
25
25
  end
26
26
  end
27
27
  end
28
28
 
29
29
  class BundleAddProvisioner < Vagrant.plugin('2', :provisioner)
30
30
  def provision
31
- @config.bundles.each do | item |
32
- @machine.ui.detail("installing '#{item}' bundle")
33
- @machine.communicate.sudo("swupd bundle-add '#{item}'") do |type, data|
34
- if [:stderr, :stdout].include?(type)
35
- color = type == :stdout ? :green : :red
31
+ @machine.ui.detail("installing the following bundle(s): '#{@config.bundles}'")
32
+ @machine.communicate.sudo("swupd bundle-add #{@config.bundles}") do |type, data|
33
+ if [:stderr, :stdout].include?(type)
34
+ color = type == :stdout ? :green : :red
36
35
 
37
- data = data.chomp
38
- break if data.empty?
36
+ options = {}
37
+ options[:color] = color
39
38
 
40
- options = {}
41
- options[:color] = color
42
-
43
- @machine.ui.detail(data.chomp, options)
44
- end
39
+ @machine.ui.detail(data.chomp, options)
45
40
  end
46
- # XXX: to avoid (!) ...
47
- # 'Error: cannot acquire lock file. Another swupd process is already running (possibly auto-update).'
48
- sleep 2
49
41
  end
50
42
  end
51
43
  end
@@ -53,25 +45,19 @@ module VagrantPlugins
53
45
  class BundleRemoveProvisioner < Vagrant.plugin('2', :provisioner)
54
46
 
55
47
  def provision
56
- @config.bundles.each do | item |
57
- @machine.ui.detail("removing '#{item}' bundle")
58
- @machine.communicate.sudo("swupd bundle-remove '#{item}'") do |type, data|
59
- if [:stderr, :stdout].include?(type)
60
- color = type == :stdout ? :green : :red
61
-
62
- data = data.chomp
63
- break if data.empty?
48
+ @machine.ui.detail("removing the following bundle(s): '#{@config.bundles}'")
49
+ @machine.communicate.sudo("swupd bundle-remove #{@config.bundles}") do |type, data|
50
+ if [:stderr, :stdout].include?(type)
51
+ color = type == :stdout ? :green : :red
64
52
 
65
- options = {}
66
- options[:color] = color
53
+ options = {}
54
+ options[:color] = color
67
55
 
68
- @machine.ui.detail(data.chomp, options)
69
- end
56
+ @machine.ui.detail(data.chomp, options)
70
57
  end
71
- sleep 2
72
58
  end
73
59
  end
74
-
75
60
  end
61
+
76
62
  end
77
- end
63
+ end
@@ -4,6 +4,6 @@
4
4
  module VagrantPlugins
5
5
  # Set version for vagrant-guests-clearlinux gem.
6
6
  module GuestClearLinux
7
- VERSION = '1.1.1'
7
+ VERSION = '1.1.2'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-guests-clearlinux
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - António Meireles
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-07 00:00:00.000000000 Z
11
+ date: 2019-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler