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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7dea49a431b5ff8db24f1b06fb785c891f7ca87
4
- data.tar.gz: d609049c7c8709c2556428a8ee56658ea0ac6433
3
+ metadata.gz: e12d785f9147e0671365de174aa815e8963e3c47
4
+ data.tar.gz: 9c4f68bd82a57cc5e79b94de89135e8600d3acc4
5
5
  SHA512:
6
- metadata.gz: 14ed1e1240f475b84b7e7e0a27da27d74315bd73311b97aaf244cd4dcd3a593746070adaff220d0093992f491cb5ad1d1dccaa700e5b6c1c69f4b78f5ee87a38
7
- data.tar.gz: 3b5f5f00cff814228eb5550795a212d8503f52ac1ff33705f210a3db855ac701b9a31f3898f9b0be4d4c08c5bc8b707c87ed2b572809192b9b219e0c5380679f
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 'Describe run'
20
- arg_name 'Describe arguments to run here'
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 'Describe restart'
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 'Describe list here'
59
- arg_name 'Describe arguments to list here'
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|
@@ -1,3 +1,3 @@
1
1
  module GridRunner
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
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
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: 2015-12-31 00:00:00.000000000 Z
11
+ date: 2016-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake