charmkit 0.3.3 → 0.3.4

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: '085bbf025dc62ab2a3055ece656da11355623e06'
4
- data.tar.gz: b34202cdbab9d6d49d3a2d7285cdd5ff01f9fa00
3
+ metadata.gz: 05364a4374be704b432ec856dbc035ce451e85c1
4
+ data.tar.gz: de1fcd348a2deba7363ca267cfc4142bc66cc88a
5
5
  SHA512:
6
- metadata.gz: f7f6052e9e05a23d5aa9256320916666ca9c9280c7040dac21226efda3abff7f986915a1fc11dd8874e6bf3936e740ef81855ed1c6f7f760e2989cf4e23a7746
7
- data.tar.gz: 92fb9c39b875643eff49593b2097138cf8c511be8121fa26dc9459d09917f9f94269bba8f86e230fe859278b94381bdfbeacb960d58d5dbfcf460d35b1ff028b
6
+ metadata.gz: '008297d5686d1508a1f333e35717d2507dd09fc65a8e7e6497a8956e9af7da7cc1fd86a9b1dc9974fe1af5cb35de090957ae00693328521f5f774f18919092ee'
7
+ data.tar.gz: 58327894324fcd05a17310addf9ba61686582c31565baf8442ee47cc10c4135d3721aae2afd16379659ee86bcc122091c6737e0f09d9c0b544c927cd49db8477
data/lib/charmkit/fs.rb CHANGED
@@ -11,5 +11,11 @@ module Charmkit
11
11
  def is_dir?(path)
12
12
  return Dir.exists? path
13
13
  end
14
+ def spew(dst, content)
15
+ File.write(dst, content)
16
+ end
17
+ def slurp(src)
18
+ return File.read(src)
19
+ end
14
20
  end
15
21
  end
@@ -3,9 +3,9 @@ module Charmkit
3
3
  module DSL
4
4
  # calls status-set in juju environment
5
5
  def status(level=:maintenance, msg="")
6
- levels = [:maintenance, :active, :blocked]
6
+ levels = [:maintenance, :active, :blocked, :waiting]
7
7
  raise unless levels.include?(level)
8
- run "status-set #{level.to_s} #{msg}"
8
+ run "status-set #{level.to_s} '#{msg}'"
9
9
  end
10
10
 
11
11
  def config(item)
@@ -1,3 +1,3 @@
1
1
  module Charmkit
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
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.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Stokes