grid_runner 0.0.9 → 0.1.0

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: 70f55992a0c7bb4a0eb739a733a68bf23ed55496
4
- data.tar.gz: 9334a9feb173442082d07d9f9b529b4f0aded3dc
3
+ metadata.gz: 1d6f350c70a2b518bc1597b70bf6707a70dc09c4
4
+ data.tar.gz: 9294f90d263b1d00e8b4262085d106fc02ba46aa
5
5
  SHA512:
6
- metadata.gz: bc7ca09a106100893859400c5cacbac7d91ff8d9ea801158c2bcf6cae163df17961d10af84b3cc8f3dc8b97ecf9e40a76fc470814ba7a5856642d1966350a5f8
7
- data.tar.gz: 931d1ca6329f0ad4dc732ed97dea3a3c3a7ef20b82e09ad6ccff71b3ffca9da6658647932a7f1fdcea25c86e99a0eaa941b56f2812e39c6e5963e3d1893cbb6f
6
+ metadata.gz: 0fab1e86a9effbfacc475d83e0b3ca2c1124afee5e99754998ff0b8799b472e662a7784cbefd3fe0044d5e3f4f5f68036eecc11e3ff64a0d567a5ae360c5cc47
7
+ data.tar.gz: 06c36ca189643bd76371c6207bb38d70d686fa02eea0d98af77ef6967a91a10284558f03ca7a3b1afb86cf3e6724ef5bffb0e30b51f7171c762db69cba3acf4a
data/.gitignore ADDED
@@ -0,0 +1,20 @@
1
+ ## Documentation cache and generated files:
2
+ /.yardoc/
3
+ /_yardoc/
4
+ /doc/
5
+ /rdoc/
6
+
7
+ ## Environment normalization:
8
+ /.bundle/
9
+ /vendor/bundle
10
+ /lib/bundler/man/
11
+
12
+ # for a library or gem, you might want to ignore these files since the code is
13
+ # intended to run in multiple environments; otherwise, check them in:
14
+ # Gemfile.lock
15
+ # .ruby-version
16
+ # .ruby-gemset
17
+
18
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
19
+ .rvmrc
20
+
data/Procfile CHANGED
@@ -6,7 +6,6 @@ ftp-watcher: sbt -Dftp.active=true "project ftp-watcher" "~ run 9004"
6
6
  kahuna: sbt "project kahuna" "~ run 9005"
7
7
  cropper: sbt "project cropper" "~ run 9006"
8
8
  metadata-editor: sbt "project metadata-editor" "~ run 9007"
9
- imgops: cd imgops; ./dev-start.sh
10
9
  usage: sbt "project usage" "~ run 9009"
11
10
  collections: sbt "project collections" "~ run 9010"
12
11
  auth: sbt "project auth" "~ run 9011"
data/README.md CHANGED
@@ -8,6 +8,15 @@ Install
8
8
 
9
9
  ``` gem install grid_runner ```
10
10
 
11
+ *** warning ***
12
+ If you dont get the latest version (0.0.9)
13
+
14
+ run:
15
+ ``` gem uninstall grid_runner ```
16
+ ``` gem install grid_runner -v 0.0.9 ```
17
+
18
+ not sure what i did to rubygems to bork this. but it was borked for me ^_^
19
+
11
20
 
12
21
  Requirements
13
22
  ------------
data/bin/grid_runner CHANGED
@@ -50,7 +50,7 @@ desc 'runs a given app listed in the Procfile (or all)'
50
50
  arg_name "app names separated by a SPACE or 'all'"
51
51
  command :run do |c|
52
52
  c.action do |global_options,options,args|
53
- apps_to_run = apps_from_args(args)
53
+ apps_to_run = apps_from_args(args) || App.all
54
54
  if apps_to_run.empty?
55
55
  Rainbow("No app #{args.first} found in Procfile")
56
56
  else
data/grid_runner.gemspec CHANGED
@@ -16,4 +16,5 @@ spec = Gem::Specification.new do |s|
16
16
  s.add_development_dependency('rdoc')
17
17
  s.add_development_dependency('aruba')
18
18
  s.add_runtime_dependency('gli','2.13.4')
19
+ s.add_runtime_dependency('rainbow')
19
20
  end
@@ -2,7 +2,7 @@ require 'open3'
2
2
 
3
3
  class App
4
4
  PROCFILE = File.open(Dir.pwd + "/Procfile")
5
-
5
+
6
6
  attr_reader :name, :command, :status, :pid
7
7
 
8
8
  def initialize(name, command, status, pid)
@@ -35,7 +35,7 @@ class App
35
35
 
36
36
  def display(color_index = rand(0..COLORS.length))
37
37
  puts
38
- puts Rainbow("#{name} ").send(COLORS[color_index % COLORS.length]).underline
38
+ puts Rainbow("#{name} ").send(COLORS[color_index % COLORS.length]).underline
39
39
  puts "status: #{status}"
40
40
  puts "pid: #{pid}" if status == :running
41
41
  puts "log: #{log.path}"
@@ -59,8 +59,8 @@ class App
59
59
 
60
60
  Process.spawn(
61
61
  ENV,
62
- command,
63
- out: [log.path, "w"],
62
+ command,
63
+ out: [log.path, "w"],
64
64
  err: [log.path, "w"],
65
65
  :in => "/dev/null"
66
66
  )
@@ -73,12 +73,12 @@ class App
73
73
  private
74
74
 
75
75
  def self.app_process_from_grep(stdout, name = nil)
76
- stdout.split(/\n/).find do |l|
77
- l.match(name) &&
78
- !l.match("grep") &&
76
+ stdout.split(/\n/).find do |l|
77
+ l.match(name) &&
78
+ !l.match("grep") &&
79
79
  !l.match("tail") &&
80
- # for auth
81
- !l.match("MacOS") &&
80
+ # for auth
81
+ !l.match("MacOS") &&
82
82
  !l.match("grid_runner")
83
83
  end
84
84
  end
@@ -96,4 +96,4 @@ class App
96
96
  end
97
97
  {status: proc_status, pid: pid}
98
98
  end
99
- end
99
+ end
@@ -1,3 +1,3 @@
1
1
  module GridRunner
2
- VERSION = '0.0.9'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grid_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NickyPStraightStylinOnEm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-08 00:00:00.000000000 Z
11
+ date: 2016-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdoc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: aruba
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
68
  version: 2.13.4
69
+ - !ruby/object:Gem::Dependency
70
+ name: rainbow
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description:
70
84
  email: np1249a@gmail.com
71
85
  executables:
@@ -73,6 +87,7 @@ executables:
73
87
  extensions: []
74
88
  extra_rdoc_files: []
75
89
  files:
90
+ - ".gitignore"
76
91
  - Gemfile
77
92
  - Gemfile.lock
78
93
  - Procfile
@@ -98,17 +113,17 @@ require_paths:
98
113
  - lib
99
114
  required_ruby_version: !ruby/object:Gem::Requirement
100
115
  requirements:
101
- - - '>='
116
+ - - ">="
102
117
  - !ruby/object:Gem::Version
103
118
  version: '0'
104
119
  required_rubygems_version: !ruby/object:Gem::Requirement
105
120
  requirements:
106
- - - '>='
121
+ - - ">="
107
122
  - !ruby/object:Gem::Version
108
123
  version: '0'
109
124
  requirements: []
110
125
  rubyforge_project:
111
- rubygems_version: 2.0.14
126
+ rubygems_version: 2.5.1
112
127
  signing_key:
113
128
  specification_version: 4
114
129
  summary: A lil appy to run them small apz