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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e201ba0a33383d5c381aed3569be8a03e6c54339
4
- data.tar.gz: e7b14f1633dfae5496cae7dd80e74f992601cac8
3
+ metadata.gz: 4487ffdd9f42177d0b98dbe8ade34b2fd7feb3e2
4
+ data.tar.gz: 682d10d0feef7c241d4f8cb94a3e7aceaed8d121
5
5
  SHA512:
6
- metadata.gz: 95c1513993c42c4c3886700241e3bc77bad76d3054b01233c856aefb527b2135966e0c64c0610452e22c192cc313bf8c9a0cac2b4eb15ba3bd9d30d337d9d1f7
7
- data.tar.gz: 9697c096517fd1a8f5a4db3c3b7fe1ae1f75e6bd3b81d26a33c1438a854b29dc49c7f8983ef7f0e4ffb8f281d68d40c27cd3b94c9ad06fd9821bd7c721538e47
6
+ metadata.gz: 87a387953fc9b7e44802e801a445eb9675cdbe20facb81343c5bc3fd929834603158153a8fb123f92b7943ab06c4a1b67b6cd515d4ad4011db84de8c85da7201
7
+ data.tar.gz: feed85b1ece91c509177b6802e5fd3d94ba2eeae099e5ba0fe85ca651b6208805b5498b59b2efc0d178aa2df726666b3c5e612903bfb0c08c82a961836224671
@@ -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
@@ -6,7 +6,7 @@ module Charmkit
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 4
9
- PATCH = 7
9
+ PATCH = 8
10
10
  PRE = nil
11
11
 
12
12
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charmkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Stokes