powder 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/bin/powder +8 -4
- data/lib/powder/version.rb +1 -1
- metadata +20 -4
data/CHANGELOG.md
CHANGED
data/bin/powder
CHANGED
@@ -113,9 +113,11 @@ module Powder
|
|
113
113
|
say "powder #{Powder::VERSION}"
|
114
114
|
end
|
115
115
|
|
116
|
-
|
116
|
+
desc "config", "Shows current pow configuration"
|
117
117
|
def config
|
118
|
-
|
118
|
+
results = %x{curl --silent -H host:pow localhost/config.json}.gsub(':','=>')
|
119
|
+
return say("Error: Cannot get Pow config. Pow may be down. Try 'powder up' first.") if results.empty? || !(results =~ /^\{/)
|
120
|
+
json = eval results
|
119
121
|
json.each do |k,v|
|
120
122
|
case v
|
121
123
|
when String, Numeric
|
@@ -125,10 +127,12 @@ module Powder
|
|
125
127
|
end
|
126
128
|
end
|
127
129
|
end
|
128
|
-
|
130
|
+
|
129
131
|
desc "status", "Shows current pow status"
|
130
132
|
def status
|
131
|
-
|
133
|
+
results = %x{curl --silent -H host:pow localhost/status.json}.gsub(':','=>')
|
134
|
+
return say("Error: Cannot get Pow status. Pow may be down. Try 'powder up' first.") if results.empty? || !(results =~ /^\{/)
|
135
|
+
json = eval results
|
132
136
|
json.each {|k,v| say "#{k.ljust(12, ' ')} #{v}"}
|
133
137
|
end
|
134
138
|
|
data/lib/powder/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: powder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
hash: 23
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Phil Nash
|
@@ -11,7 +16,7 @@ autorequire:
|
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
18
|
|
14
|
-
date: 2011-
|
19
|
+
date: 2011-07-18 00:00:00 +01:00
|
15
20
|
default_executable:
|
16
21
|
dependencies:
|
17
22
|
- !ruby/object:Gem::Dependency
|
@@ -22,6 +27,11 @@ dependencies:
|
|
22
27
|
requirements:
|
23
28
|
- - ">="
|
24
29
|
- !ruby/object:Gem::Version
|
30
|
+
hash: 57
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
- 11
|
34
|
+
- 5
|
25
35
|
version: 0.11.5
|
26
36
|
type: :runtime
|
27
37
|
version_requirements: *id001
|
@@ -59,17 +69,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
69
|
requirements:
|
60
70
|
- - ">="
|
61
71
|
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 0
|
62
75
|
version: "0"
|
63
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
77
|
none: false
|
65
78
|
requirements:
|
66
79
|
- - ">="
|
67
80
|
- !ruby/object:Gem::Version
|
81
|
+
hash: 3
|
82
|
+
segments:
|
83
|
+
- 0
|
68
84
|
version: "0"
|
69
85
|
requirements: []
|
70
86
|
|
71
87
|
rubyforge_project: powder
|
72
|
-
rubygems_version: 1.
|
88
|
+
rubygems_version: 1.3.7
|
73
89
|
signing_key:
|
74
90
|
specification_version: 3
|
75
91
|
summary: Makes Pow even easier
|