rubyhook 0.1.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/rubyhook +6 -0
- data/lib/rubyhook/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 276d5db8db9790d9ab736272105a333b131a52ec
|
|
4
|
+
data.tar.gz: 3e9de949e304e3da106b63b9bf59da6d2c14be0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9919429f8ee6dcc363085d7d26adb1aa63a3f09282e5e2fe7257d4b7a98b4621907ef2cdf76d592c91aa9e8b631433c01adfc15929d2f1539ccc7f466eea671
|
|
7
|
+
data.tar.gz: 59601b458f70a7641206906b55a018b2e17b358c759d2a3632ed035c20e8276f68205231df734860362476845281c2736ccd316ce0f69dc222806ab1309958b5
|
data/bin/rubyhook
CHANGED
|
@@ -23,6 +23,10 @@ OptionParser.new do |opts|
|
|
|
23
23
|
exit
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
+
opts.on('--once COMMAND','run the command once at server startup.') do | command |
|
|
27
|
+
options[:once] = command
|
|
28
|
+
end
|
|
29
|
+
|
|
26
30
|
opts.banner = "Usage: rh [options] command"
|
|
27
31
|
end.parse!
|
|
28
32
|
|
|
@@ -34,6 +38,8 @@ configure do
|
|
|
34
38
|
enable :run
|
|
35
39
|
end
|
|
36
40
|
|
|
41
|
+
puts`#{options[:once]}` if options[:once]
|
|
42
|
+
|
|
37
43
|
post options[:url] {`#{ARGV[0]}`}
|
|
38
44
|
|
|
39
45
|
get '/*' do
|
data/lib/rubyhook/version.rb
CHANGED