invoker 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cb5db9a4721bdd2207ddcc8df052b13535bb9ff2
4
+ data.tar.gz: 1595dbd8535de9debb91405e6538eaa2ecc94533
5
+ SHA512:
6
+ metadata.gz: 799b0482eef58b4c28c4db4bcc6d643488ee37a11597960b1d866b8a8d5469381cc22aba13ca39a6457006242224dff401050979775acddb3061cf2b317a65b8
7
+ data.tar.gz: 614f1643928310cc009886cc42cc5552508391fd553c7b555c60e3e867bd4d8a65a7ad45181215c968850d942dc6bf68d8dad2fac0ae73c944cad4d1b9749b90
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  invoker.ini
2
2
  config/
3
3
  *.gem
4
-
4
+ Gemfile.lock
5
+ pkg/
data/invoker.gemspec CHANGED
@@ -26,13 +26,12 @@ Gem::Specification.new do |s|
26
26
  s.licenses = ["MIT"]
27
27
  s.require_paths = ["lib"]
28
28
  s.summary = %q{Something small for Process management}
29
- s.add_dependency("slop")
30
- s.add_dependency("iniparse")
31
- s.add_dependency("colored")
32
- s.add_dependency("formatador")
29
+ s.add_dependency("slop", "~> 3.4.6")
30
+ s.add_dependency("iniparse", "~> 1.1.6")
31
+ s.add_dependency("colored", "~> 1.2.0")
32
+ s.add_dependency("formatador", "~> 0.2.4")
33
33
  s.add_development_dependency("bacon")
34
34
  s.add_development_dependency("mocha")
35
35
  s.add_development_dependency("mocha-on-bacon")
36
36
  s.add_development_dependency("rake")
37
37
  end
38
-
@@ -1,3 +1,3 @@
1
1
  module Invoker
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/readme.md CHANGED
@@ -1,14 +1,14 @@
1
1
  Invoker is a gem for managing processes in development environment.
2
2
 
3
3
  [![Build Status](https://travis-ci.org/code-mancers/invoker.png)](https://travis-ci.org/code-mancers/invoker)
4
-
4
+ [![Code Climate](https://codeclimate.com/repos/51d3bfb9c7f3a3777b060155/badges/7e150ca223f6bc8935f7/gpa.png)](https://codeclimate.com/repos/51d3bfb9c7f3a3777b060155/feed)
5
5
 
6
6
  ## Usage ##
7
7
 
8
8
  First we need to install `invoker` gem to get command line utility called `invoker`, we can do that via:
9
9
 
10
10
  gem install invoker
11
-
11
+
12
12
  Currently it only works with Ruby 1.9.3 and 2.0.
13
13
 
14
14
  You need to start by creating a `ini` file which will define processes you want to manage using invoker. An example
@@ -17,19 +17,19 @@ You need to start by creating a `ini` file which will define processes you want
17
17
  [rails]
18
18
  directory = /home/gnufied/god_particle
19
19
  command = zsh -c 'bundle exec rails s -p 5000'
20
-
20
+
21
21
  [dj]
22
22
  directory = /home/gnufied/god_particle
23
23
  command = zsh -c 'bundle exec ruby script/delayed_job'
24
-
24
+
25
25
  [events]
26
26
  directory = /home/gnufied/god_particle
27
27
  command = zsh -c 'bundle exec ruby script/event_server'
28
-
28
+
29
29
  After that you can start process manager via:
30
30
 
31
31
  ~> invoker start invoker.ini
32
-
32
+
33
33
  Above command will start all your processes in one terminal with their stdout/stderr merged and labelled.
34
34
 
35
35
  Now additionally you can control individual process by,
@@ -42,7 +42,7 @@ Now additionally you can control individual process by,
42
42
 
43
43
  # add and start running
44
44
  ~> invoker add dj
45
-
45
+
46
46
  # List currently running processes managed by invoker
47
47
  ~> invoker list
48
48
 
@@ -51,8 +51,8 @@ Now additionally you can control individual process by,
51
51
 
52
52
  # Restart process given by command label using specific signal for killing
53
53
  ~> invoker reload dj -s 9
54
-
55
- You can also enable OSX notifications for crashed processes by installing `terminal-notifier` gem. It is not a dependency, but can be useful if something crashed and you weren't paying attention.
54
+
55
+ You can also enable OSX notifications for crashed processes by installing `terminal-notifier` gem. It is not a dependency, but can be useful if something crashed and you weren't paying attention.
56
56
 
57
57
  ## Using with rbenv or rvm ##
58
58
 
@@ -60,16 +60,15 @@ The way `rbenv` and `rvm` work sometimes creates problems when you are trying to
60
60
  If you are running `invoker` with Ruby version x, but your application requires Ruby version Y:
61
61
 
62
62
  * When using `rbenv`, you can define the command with environment variable `RBENV_VERSION=Y` and then start your application. In other words:
63
-
63
+
64
64
  command = RBENV_VERSION=2.0.0-p0 zsh -c "bundle exec rails s"
65
65
 
66
- * Unless version of Ruby using which you are running `invoker` command and version of Ruby you are using in the application is same, you almost always will want to use
66
+ * Unless version of Ruby using which you are running `invoker` command and version of Ruby you are using in the application is same, you almost always will want to use
67
67
  `zsh -c` or `bash -c`. `RVM` in particular requires a login shell and hence sometimes you may have to use `bash -lc`. For example:
68
68
 
69
69
  command = bash -lc "rvm 2.0.0-p0 do bundle exec rails s"
70
-
70
+
71
71
 
72
72
  ## Bug reports and Feature requests
73
73
 
74
74
  Please use [Github Issue Tracker](https://github.com/code-mancers/invoker/issues) for feature requests or bug reports.
75
-
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invoker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Hemant Kumar
@@ -14,129 +13,113 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: slop
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: 3.4.6
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: '0'
26
+ version: 3.4.6
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: iniparse
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ~>
36
32
  - !ruby/object:Gem::Version
37
- version: '0'
33
+ version: 1.1.6
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ~>
44
39
  - !ruby/object:Gem::Version
45
- version: '0'
40
+ version: 1.1.6
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: colored
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ~>
52
46
  - !ruby/object:Gem::Version
53
- version: '0'
47
+ version: 1.2.0
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ~>
60
53
  - !ruby/object:Gem::Version
61
- version: '0'
54
+ version: 1.2.0
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: formatador
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ~>
68
60
  - !ruby/object:Gem::Version
69
- version: '0'
61
+ version: 0.2.4
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ~>
76
67
  - !ruby/object:Gem::Version
77
- version: '0'
68
+ version: 0.2.4
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: bacon
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: mocha
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: mocha-on-bacon
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - '>='
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - '>='
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: rake
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ! '>='
115
+ - - '>='
132
116
  - !ruby/object:Gem::Version
133
117
  version: '0'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ! '>='
122
+ - - '>='
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
125
  description: Something small for process management
@@ -177,27 +160,26 @@ files:
177
160
  homepage: http://github.com/code-mancers/invoker
178
161
  licenses:
179
162
  - MIT
163
+ metadata: {}
180
164
  post_install_message:
181
165
  rdoc_options: []
182
166
  require_paths:
183
167
  - lib
184
168
  required_ruby_version: !ruby/object:Gem::Requirement
185
- none: false
186
169
  requirements:
187
- - - ! '>='
170
+ - - '>='
188
171
  - !ruby/object:Gem::Version
189
172
  version: '0'
190
173
  required_rubygems_version: !ruby/object:Gem::Requirement
191
- none: false
192
174
  requirements:
193
- - - ! '>='
175
+ - - '>='
194
176
  - !ruby/object:Gem::Version
195
177
  version: '0'
196
178
  requirements: []
197
179
  rubyforge_project:
198
- rubygems_version: 1.8.23
180
+ rubygems_version: 2.0.3
199
181
  signing_key:
200
- specification_version: 3
182
+ specification_version: 4
201
183
  summary: Something small for Process management
202
184
  test_files:
203
185
  - spec/invoker/command_listener/client_spec.rb