powder 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +15 -4
- data/Readme.md +11 -3
- data/bin/powder +21 -2
- data/lib/powder/version.rb +1 -1
- metadata +4 -20
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,15 @@
|
|
1
|
-
### 0.1.
|
1
|
+
### 0.1.5 / 2011-06-30 ###
|
2
|
+
|
3
|
+
* 4 minor changes
|
4
|
+
|
5
|
+
* Expand path to ~/.powconfig before reading it
|
6
|
+
([commit](https://github.com/Rodreegez/powder/commit/58ec48e4f369ea72e76c15900e7ec8f0c6b0bbf1))
|
7
|
+
* Fix generating config.ru
|
8
|
+
([commit](https://github.com/Rodreegez/powder/commit/f65d3f1f897a36d18ea3ea54fa39627c8d5fcee6))
|
9
|
+
* Add config and status commands
|
10
|
+
([commit](https://github.com/Rodreegez/powder/commit/9f7ec926a9b502d2fe546c9f1b1d396477a3cae4))
|
11
|
+
|
12
|
+
### 0.1.4 / 2011-05-26 ###
|
2
13
|
|
3
14
|
* 2 minor change
|
4
15
|
|
@@ -24,7 +35,7 @@
|
|
24
35
|
|
25
36
|
* add log command
|
26
37
|
([commit](https://github.com/Rodreegez/powder/commit/140ef1fef456e3cbe266a2df61b03f3e9c403aeb))
|
27
|
-
* fix error when calling remove on a pow that does not exist
|
38
|
+
* fix error when calling remove on a pow that does not exist
|
28
39
|
([commit](https://github.com/Rodreegez/powder/commit/948f7251153afaab7c881b312b094d9843919dcb))
|
29
40
|
* properly recognise rails 2 apps and display note accordingly
|
30
41
|
([commit](https://github.com/Rodreegez/powder/commit/0445eb652ec824a7f84d12567539a7c2515341a2))
|
@@ -32,7 +43,7 @@
|
|
32
43
|
([commit](https://github.com/Rodreegez/powder/commit/493a8f84c27b94fcd24dc84168a47a7c399a9ba1))
|
33
44
|
* improve how we determin home dir
|
34
45
|
([commit](https://github.com/Rodreegez/powder/commit/b2e70ca790420a06c21a7f4fc466c167c65fb173))
|
35
|
-
* adds version command
|
46
|
+
* adds version command
|
36
47
|
([commit](https://github.com/Rodreegez/powder/commit/3bb995e2ce5ee2f62735b681b2c15418438f2df4))
|
37
48
|
|
38
49
|
### 0.1.1 / 2011-04-11 ###
|
@@ -47,7 +58,7 @@
|
|
47
58
|
|
48
59
|
* The command has changed from pow to powder to allow pow to use the command
|
49
60
|
([issue](https://github.com/Rodreegez/powder/issues/5))
|
50
|
-
|
61
|
+
|
51
62
|
* 1 minor change
|
52
63
|
|
53
64
|
* open and link now honour domains specified in .powconfig
|
data/Readme.md
CHANGED
@@ -29,6 +29,9 @@ powder manages [pow](http://pow.cx/)
|
|
29
29
|
$ powder applog
|
30
30
|
=> tail the log of the current app
|
31
31
|
|
32
|
+
$ powder config
|
33
|
+
=> Get Pow's current configuration information
|
34
|
+
|
32
35
|
$ powder list
|
33
36
|
=> List all the current apps linked in ~/.pow
|
34
37
|
# aliased as powder -l
|
@@ -47,10 +50,13 @@ powder manages [pow](http://pow.cx/)
|
|
47
50
|
# if you have set up alternative top level domains in .powconfig,
|
48
51
|
# then the first listed domain will be opened.
|
49
52
|
|
50
|
-
$ powder restart
|
53
|
+
$ powder restart
|
51
54
|
=> Restart the current app
|
52
55
|
# aliased as powder -r
|
53
56
|
|
57
|
+
$ powder status
|
58
|
+
=> Get Pow's current status information
|
59
|
+
|
54
60
|
$ powder version
|
55
61
|
=> Returns the current powder version
|
56
62
|
# aliased as powder -v
|
@@ -58,12 +64,12 @@ powder manages [pow](http://pow.cx/)
|
|
58
64
|
### Install and uninstall Pow ###
|
59
65
|
|
60
66
|
$ powder install
|
61
|
-
=> Installs pow server
|
67
|
+
=> Installs pow server
|
62
68
|
# (I know, "curl get.pow.cx | sh" isn't hard, but this is _even_ easier)
|
63
69
|
|
64
70
|
$ powder uninstall
|
65
71
|
=> Uninstalls pow server
|
66
|
-
|
72
|
+
|
67
73
|
$ powder update
|
68
74
|
=> Updates pow server
|
69
75
|
# Really this is just an alias to powder install, but it feels more natural
|
@@ -87,3 +93,5 @@ Massive thanks to all our great
|
|
87
93
|
## Copyright ##
|
88
94
|
|
89
95
|
Copyright (c) 2011 Adam Rogers and Phil Nash. See LICENSE for details.
|
96
|
+
|
97
|
+
Lovingly supported by [Mint Digital](http://mintdigital.com)
|
data/bin/powder
CHANGED
@@ -112,6 +112,25 @@ module Powder
|
|
112
112
|
def version
|
113
113
|
say "powder #{Powder::VERSION}"
|
114
114
|
end
|
115
|
+
|
116
|
+
desc "config", "Shows current pow configuration"
|
117
|
+
def config
|
118
|
+
json = eval %x{curl --silent -H host:pow localhost/config.json}.gsub(':','=>')
|
119
|
+
json.each do |k,v|
|
120
|
+
case v
|
121
|
+
when String, Numeric
|
122
|
+
say "#{k.ljust(12,' ')} #{v}"
|
123
|
+
when Array
|
124
|
+
say "#{k.ljust(12,' ')} #{v.join ', '}\n"
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
desc "status", "Shows current pow status"
|
130
|
+
def status
|
131
|
+
json = eval %x{curl --silent -H host:pow localhost/status.json}.gsub(':','=>')
|
132
|
+
json.each {|k,v| say "#{k.ljust(12, ' ')} #{v}"}
|
133
|
+
end
|
115
134
|
|
116
135
|
private
|
117
136
|
|
@@ -129,7 +148,7 @@ module Powder
|
|
129
148
|
elsif legacy = (is_rails2_app? || is_radiant_app?)
|
130
149
|
say "This appears to be a #{legacy} applicaton. You need a config.ru file."
|
131
150
|
if yes? "Do you want to autogenerate a basic config.ru for #{legacy}?"
|
132
|
-
uri = URI.parse("https://
|
151
|
+
uri = URI.parse("https://raw.github.com/gist/909308")
|
133
152
|
http = Net::HTTP.new(uri.host, uri.port)
|
134
153
|
http.use_ssl = true
|
135
154
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
@@ -158,7 +177,7 @@ module Powder
|
|
158
177
|
end
|
159
178
|
|
160
179
|
def domain
|
161
|
-
if File.exists? '~/.powconfig'
|
180
|
+
if File.exists? File.expand_path('~/.powconfig')
|
162
181
|
returned_domain = %x{source ~/.powconfig; echo $POW_DOMAINS}.gsub("\n", "").split(",").first
|
163
182
|
returned_domain = %x{source ~/.powconfig; echo $POW_DOMAIN}.gsub("\n", "") if returned_domain.nil? || returned_domain.empty?
|
164
183
|
returned_domain = 'dev' if returned_domain.nil? || returned_domain.empty?
|
data/lib/powder/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: powder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 4
|
10
|
-
version: 0.1.4
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.5
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Phil Nash
|
@@ -16,7 +11,7 @@ autorequire:
|
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
13
|
|
19
|
-
date: 2011-
|
14
|
+
date: 2011-06-30 00:00:00 +01:00
|
20
15
|
default_executable:
|
21
16
|
dependencies:
|
22
17
|
- !ruby/object:Gem::Dependency
|
@@ -27,11 +22,6 @@ dependencies:
|
|
27
22
|
requirements:
|
28
23
|
- - ">="
|
29
24
|
- !ruby/object:Gem::Version
|
30
|
-
hash: 57
|
31
|
-
segments:
|
32
|
-
- 0
|
33
|
-
- 11
|
34
|
-
- 5
|
35
25
|
version: 0.11.5
|
36
26
|
type: :runtime
|
37
27
|
version_requirements: *id001
|
@@ -69,23 +59,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
59
|
requirements:
|
70
60
|
- - ">="
|
71
61
|
- !ruby/object:Gem::Version
|
72
|
-
hash: 3
|
73
|
-
segments:
|
74
|
-
- 0
|
75
62
|
version: "0"
|
76
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
64
|
none: false
|
78
65
|
requirements:
|
79
66
|
- - ">="
|
80
67
|
- !ruby/object:Gem::Version
|
81
|
-
hash: 3
|
82
|
-
segments:
|
83
|
-
- 0
|
84
68
|
version: "0"
|
85
69
|
requirements: []
|
86
70
|
|
87
71
|
rubyforge_project: powder
|
88
|
-
rubygems_version: 1.
|
72
|
+
rubygems_version: 1.5.2
|
89
73
|
signing_key:
|
90
74
|
specification_version: 3
|
91
75
|
summary: Makes Pow even easier
|