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 +4 -4
- data/lib/vagrant-guests-clearlinux/provisioner.rb +18 -32
- data/lib/vagrant-guests-clearlinux/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfa5f951d32b52a569a44c55a878f37f39183a39634037301e3118ff9346814e
|
4
|
+
data.tar.gz: 95eb0ab44c67df88572012361b8a18d6a21cdb5cf746b8c1bfe3125b8b814860
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
22
|
+
@bundles = bundles.join(" ")
|
23
23
|
else
|
24
|
-
@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
|
-
@
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
-
|
38
|
-
|
36
|
+
options = {}
|
37
|
+
options[:color] = color
|
39
38
|
|
40
|
-
|
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
|
-
@
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
-
|
66
|
-
|
53
|
+
options = {}
|
54
|
+
options[:color] = color
|
67
55
|
|
68
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2019-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|