foreman 0.53.0 → 0.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/foreman-runner CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
  #
3
3
  #/ Usage: foreman-runner [-d <dir>] [-p] <command> [<args>...]
4
4
  #/
@@ -16,12 +16,12 @@ usage() {
16
16
  exit
17
17
  }
18
18
 
19
- read_profiled=""
19
+ read_profile=""
20
20
 
21
21
  while getopts ":hd:p" OPT; do
22
22
  case $OPT in
23
23
  d) cd "$OPTARG" ;;
24
- p) read_profiled="1" ;;
24
+ p) read_profile="1" ;;
25
25
  h) usage ;;
26
26
  \?) error "invalid option: -$OPTARG" ;;
27
27
  :) error "option -$OPTARG requires an argument" ;;
@@ -32,13 +32,10 @@ shift $((OPTIND-1))
32
32
 
33
33
  [ -z "$1" ] && usage
34
34
 
35
- if [ "$read_profiled" == "1" ]; then
36
- shopt -s nullglob
37
- for script in .profile.d/*; do
38
- echo "sourcing $script"
39
- source $script
40
- done
41
- shopt -u nullglob
35
+ if [ "$read_profile" == "1" ]; then
36
+ if [ -f .profile ]; then
37
+ source .profile
38
+ fi
42
39
  fi
43
40
 
44
41
  exec "$@"
data/lib/foreman/cli.rb CHANGED
@@ -75,13 +75,17 @@ class Foreman::CLI < Thor
75
75
 
76
76
  def run(*args)
77
77
  load_environment!
78
- begin
79
- exec engine.env, args.shelljoin
80
- rescue Errno::EACCES
81
- error "not executable: #{args.first}"
82
- rescue Errno::ENOENT
83
- 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
84
87
  end
88
+ Process.wait(pid)
85
89
  end
86
90
 
87
91
  desc "version", "Display Foreman gem version"
@@ -1,5 +1,5 @@
1
1
  module Foreman
2
2
 
3
- VERSION = "0.53.0"
3
+ VERSION = "0.56.0"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.53.0
4
+ version: 0.56.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-24 00:00:00.000000000 Z
12
+ date: 2012-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70298717948140 !ruby/object:Gem::Requirement
16
+ requirement: &70296649634900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.13.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70298717948140
24
+ version_requirements: *70296649634900
25
25
  description: Process manager for applications with multiple components
26
26
  email: ddollar@gmail.com
27
27
  executables:
@@ -123,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  segments:
125
125
  - 0
126
- hash: 3078355139139106032
126
+ hash: -2450566612760043025
127
127
  required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  segments:
134
134
  - 0
135
- hash: 3078355139139106032
135
+ hash: -2450566612760043025
136
136
  requirements: []
137
137
  rubyforge_project:
138
138
  rubygems_version: 1.8.11