grid_runner 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -2
- data/bin/grid_runner +5 -8
- data/lib/grid_runner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e12d785f9147e0671365de174aa815e8963e3c47
|
4
|
+
data.tar.gz: 9c4f68bd82a57cc5e79b94de89135e8600d3acc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba01765add2b7b1d42c6386a4e5a1bc372f608e4e5a9ac25dc24fb924c8952d719613def424aff7b094d18ee60f4a04425dccc8063947aa8de152fd9a0c260f2
|
7
|
+
data.tar.gz: 2a00c770079561bb498600ded37491c022855dc920c23db384a30d97359214617ea0d0917a266ff2c03efc75dfd2a8be670329f1f494ceefc4c81c6537c6f4bf
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Grid Runner
|
2
2
|
===========
|
3
3
|
|
4
|
-
A command line tool for running Grid microservices
|
4
|
+
A command line tool for running Grid microservices:
|
5
5
|
|
6
6
|
Install
|
7
7
|
-------
|
@@ -29,4 +29,14 @@ Logs
|
|
29
29
|
|
30
30
|
Currently grid_runner will put all logs in ./logs/APPNAME.log
|
31
31
|
|
32
|
-
* To watch all logs I use ``` tail -f logs/* ```
|
32
|
+
* To watch all logs I use ``` tail -f logs/* ```
|
33
|
+
|
34
|
+
Other
|
35
|
+
-----
|
36
|
+
|
37
|
+
I added "alias gr=grid_runner" to my .bash\_profile
|
38
|
+
|
39
|
+
e.g.
|
40
|
+
|
41
|
+
* ``` gr run all ```
|
42
|
+
* ``` gr list ```
|
data/bin/grid_runner
CHANGED
@@ -16,12 +16,9 @@ def apps_from_args(args)
|
|
16
16
|
return App.find(args) if args.first
|
17
17
|
end
|
18
18
|
|
19
|
-
desc '
|
20
|
-
arg_name
|
19
|
+
desc 'runs a given app listed in the Procfile (or all)'
|
20
|
+
arg_name "app names separated by a SPACE or 'all'"
|
21
21
|
command :run do |c|
|
22
|
-
c.desc 'Describe a flag to run'
|
23
|
-
c.default_value 'default'
|
24
|
-
c.flag :f
|
25
22
|
c.action do |global_options,options,args|
|
26
23
|
apps_from_args(args).each do |app|
|
27
24
|
if app.status == :running
|
@@ -34,7 +31,7 @@ command :run do |c|
|
|
34
31
|
end
|
35
32
|
end
|
36
33
|
|
37
|
-
desc '
|
34
|
+
desc 'restarts a given app'
|
38
35
|
arg_name "app names separated by a SPACE or 'all'"
|
39
36
|
command :restart do |c|
|
40
37
|
c.action do |global_options,options,args|
|
@@ -55,8 +52,8 @@ command :restart do |c|
|
|
55
52
|
end
|
56
53
|
end
|
57
54
|
|
58
|
-
desc '
|
59
|
-
arg_name
|
55
|
+
desc 'prints the status of apps listed in Procfile'
|
56
|
+
arg_name "app names separated by a SPACE or 'all'"
|
60
57
|
command :list do |c|
|
61
58
|
c.action do |global_options,options,args|
|
62
59
|
App.all.each_with_index do |app, ix|
|
data/lib/grid_runner/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grid_runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NickyPStraightStylinOnEm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|