powder 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/pow +5 -3
- data/lib/powder/version.rb +1 -1
- metadata +3 -3
data/bin/pow
CHANGED
@@ -30,7 +30,7 @@ class Pow < Thor
|
|
30
30
|
|
31
31
|
desc "list", "list current pows"
|
32
32
|
def list
|
33
|
-
Dir[POWPATH + "/*"].map { |a|
|
33
|
+
Dir[POWPATH + "/*"].map { |a| $stdout.puts File.basename(a) }
|
34
34
|
end
|
35
35
|
|
36
36
|
desc "remove", "remove a pow"
|
@@ -52,10 +52,12 @@ class Pow < Thor
|
|
52
52
|
private
|
53
53
|
|
54
54
|
def is_powable?
|
55
|
-
if File.exists?
|
55
|
+
if File.exists?('config.ru') || File.exists?('public/index.html')
|
56
56
|
true
|
57
57
|
else
|
58
|
-
$stdout.puts "This does not appear to be a rack app
|
58
|
+
$stdout.puts "This does not appear to be a rack app as there is no config.ru."
|
59
|
+
$stdout.puts "If you are in a Rails 2 application, try https://gist.github.com/909308"
|
60
|
+
$stdout.puts "Pow can also host static apps if there is an index.html in public/"
|
59
61
|
false
|
60
62
|
end
|
61
63
|
end
|
data/lib/powder/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: powder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Phil Nash
|