use Foreman::Process to extract command running
This commit is contained in:
1 parent
6042783e82
commit
8921cac35b
1 file changed
+2
-1
+2
-1
@@ -76,7 +76,8 @@ class Foreman::CLI < Thor
|
|||||||
def run(*args)
|
def run(*args)
|
||||||
load_environment!
|
load_environment!
|
||||||
begin
|
begin
|
||||||
exec engine.env, args.shelljoin
|
process = Foreman::Process.new(args.shelljoin, :env => engine.env)
|
||||||
|
process.run
|
||||||
rescue Errno::EACCES
|
rescue Errno::EACCES
|
||||||
error "not executable: #{args.first}"
|
error "not executable: #{args.first}"
|
||||||
rescue Errno::ENOENT
|
rescue Errno::ENOENT
|
||||||
|
|||||||
Reference in new issue
Block a user