foreman 0.54.0 → 0.55.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/foreman/cli.rb +10 -7
  2. data/lib/foreman/version.rb +1 -1
  3. metadata +33 -51
data/lib/foreman/cli.rb CHANGED
@@ -75,14 +75,17 @@ class Foreman::CLI < Thor
75
75
 
76
76
  def run(*args)
77
77
  load_environment!
78
- begin
79
- process = Foreman::Process.new(args.shelljoin, :env => engine.env)
80
- process.run
81
- rescue Errno::EACCES
82
- error "not executable: #{args.first}"
83
- rescue Errno::ENOENT
84
- error "command not found: #{args.first}"
78
+ pid = fork do
79
+ begin
80
+ engine.env.each { |k,v| ENV[k] = v }
81
+ exec args.shelljoin
82
+ rescue Errno::EACCES
83
+ error "not executable: #{args.first}"
84
+ rescue Errno::ENOENT
85
+ error "command not found: #{args.first}"
86
+ end
85
87
  end
88
+ Process.wait(pid)
86
89
  end
87
90
 
88
91
  desc "version", "Display Foreman gem version"
@@ -1,5 +1,5 @@
1
1
  module Foreman
2
2
 
3
- VERSION = "0.54.0"
3
+ VERSION = "0.55.0"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,48 +1,34 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: foreman
3
- version: !ruby/object:Gem::Version
4
- hash: 199
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.55.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 54
9
- - 0
10
- version: 0.54.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - David Dollar
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-08-14 00:00:00 -04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-08-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: thor
16
+ requirement: &70166177245100 !ruby/object:Gem::Requirement
23
17
  none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- hash: 39
28
- segments:
29
- - 0
30
- - 13
31
- - 6
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
32
21
  version: 0.13.6
33
- version_requirements: *id001
34
- name: thor
35
- prerelease: false
36
22
  type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70166177245100
37
25
  description: Process manager for applications with multiple components
38
26
  email: ddollar@gmail.com
39
- executables:
27
+ executables:
40
28
  - foreman
41
29
  extensions: []
42
-
43
30
  extra_rdoc_files: []
44
-
45
- files:
31
+ files:
46
32
  - bin/foreman
47
33
  - bin/foreman-runner
48
34
  - bin/taskman
@@ -123,39 +109,35 @@ files:
123
109
  - spec/resources/Procfile
124
110
  - spec/spec_helper.rb
125
111
  - man/foreman.1
126
- has_rdoc: true
127
112
  homepage: http://github.com/ddollar/foreman
128
113
  licenses: []
129
-
130
114
  post_install_message:
131
115
  rdoc_options: []
132
-
133
- require_paths:
116
+ require_paths:
134
117
  - lib
135
- required_ruby_version: !ruby/object:Gem::Requirement
118
+ required_ruby_version: !ruby/object:Gem::Requirement
136
119
  none: false
137
- requirements:
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- hash: 3
141
- segments:
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ segments:
142
125
  - 0
143
- version: "0"
144
- required_rubygems_version: !ruby/object:Gem::Requirement
126
+ hash: 2473835552279389374
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
145
128
  none: false
146
- requirements:
147
- - - ">="
148
- - !ruby/object:Gem::Version
149
- hash: 3
150
- segments:
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ segments:
151
134
  - 0
152
- version: "0"
135
+ hash: 2473835552279389374
153
136
  requirements: []
154
-
155
137
  rubyforge_project:
156
- rubygems_version: 1.6.2
138
+ rubygems_version: 1.8.11
157
139
  signing_key:
158
140
  specification_version: 3
159
141
  summary: Process manager for applications with multiple components
160
142
  test_files: []
161
-
143
+ has_rdoc: