foreman 0.0.1 → 0.0.2

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/lib/foreman.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Foreman
2
2
 
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
 
5
5
  class AppDoesNotExist < Exception; end
6
6
 
@@ -15,11 +15,6 @@ class Foreman::Export::Upstart
15
15
 
16
16
  config = Foreman::Configuration.new(app)
17
17
 
18
- engine.processes.each do |name, process|
19
- config.scale(name, 1)
20
- end
21
- config.write
22
-
23
18
  write_file "/etc/init/#{app}.conf", <<-UPSTART_MASTER
24
19
  pre-start script
25
20
 
@@ -53,6 +48,11 @@ chdir #{engine.directory}
53
48
  exec #{process.command} >>/var/log/#{app}/#{process.name}.log 2>&1
54
49
  UPSTART_CHILD
55
50
  end
51
+
52
+ engine.processes.each do |name, process|
53
+ config.scale(name, 1)
54
+ end
55
+ config.write
56
56
  end
57
57
 
58
58
  private ######################################################################
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Dollar