awsome 0.0.1 → 0.0.2
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.
- data/lib/awsome/debian.rb +8 -2
- metadata +1 -1
data/lib/awsome/debian.rb
CHANGED
|
@@ -15,7 +15,11 @@ module Awsome
|
|
|
15
15
|
return if packages.empty?
|
|
16
16
|
|
|
17
17
|
Awsome::Ssh.ssh hostname, "sudo apt-get update"
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
packages.each do |package|
|
|
20
|
+
Awsome::Ssh.ssh hostname, "sudo apt-get remove -y --force-yes #{package}"
|
|
21
|
+
end
|
|
22
|
+
|
|
19
23
|
Awsome::Ssh.ssh hostname, "echo #{remaining.to_a.join(',')} > ~/packages.csv"
|
|
20
24
|
end
|
|
21
25
|
|
|
@@ -28,7 +32,9 @@ module Awsome
|
|
|
28
32
|
if packages.empty?
|
|
29
33
|
Awsome::Ssh.ssh hostname, "sudo apt-get upgrade"
|
|
30
34
|
else
|
|
31
|
-
|
|
35
|
+
packages.each do |package|
|
|
36
|
+
Awsome::Ssh.ssh hostname, "sudo apt-get install -y --force-yes #{package}"
|
|
37
|
+
end
|
|
32
38
|
Awsome::Ssh.ssh hostname, "echo #{remaining.to_a.join(',')} > ~/packages.csv"
|
|
33
39
|
end
|
|
34
40
|
end
|