charmkit 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/charmkit/helpers/fs.rb +3 -3
- data/lib/charmkit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4487ffdd9f42177d0b98dbe8ade34b2fd7feb3e2
|
4
|
+
data.tar.gz: 682d10d0feef7c241d4f8cb94a3e7aceaed8d121
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87a387953fc9b7e44802e801a445eb9675cdbe20facb81343c5bc3fd929834603158153a8fb123f92b7943ab06c4a1b67b6cd515d4ad4011db84de8c85da7201
|
7
|
+
data.tar.gz: feed85b1ece91c509177b6802e5fd3d94ba2eeae099e5ba0fe85ca651b6208805b5498b59b2efc0d178aa2df726666b3c5e612903bfb0c08c82a961836224671
|
data/lib/charmkit/helpers/fs.rb
CHANGED
@@ -41,9 +41,9 @@ module Charmkit
|
|
41
41
|
# package ['nginx-full'], :update_cache
|
42
42
|
def package(packages, *opts)
|
43
43
|
if opts.include?(:update_cache)
|
44
|
-
run "apt-get update"
|
44
|
+
cmd.run "apt-get update"
|
45
45
|
end
|
46
|
-
run "apt-get install -qyf #{packages.join(' ')}"
|
46
|
+
cmd.run "apt-get install -qyf #{packages.join(' ')}"
|
47
47
|
end
|
48
48
|
|
49
49
|
# Checks if a package is installed
|
@@ -55,7 +55,7 @@ module Charmkit
|
|
55
55
|
# is_install? "nginx-full"
|
56
56
|
def is_installed?(package)
|
57
57
|
begin
|
58
|
-
run "dpkg -s #{package}" and return true
|
58
|
+
cmd.run "dpkg -s #{package}" and return true
|
59
59
|
rescue
|
60
60
|
return false
|
61
61
|
end
|
data/lib/charmkit/version.rb
CHANGED