gnoso-fafactory 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. data/bin/fafactory +7 -1
  2. metadata +1 -1
@@ -1,5 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
1
3
  # Starts the rails apps configured in config/fafactory.yml in test mode on
2
4
  # the given ports
5
+ require 'fileutils'
3
6
 
4
7
  def log(msg)
5
8
  puts "* [Fafactory] #{msg}"
@@ -15,7 +18,10 @@ config.each do |service, settings|
15
18
  exec_args << "--environment=test"
16
19
 
17
20
  log "Starting application at #{settings["path"]}..."
18
- fork { exec "#{settings["path"]}/script/server", *exec_args }
21
+ fork do
22
+ FileUtils.cd settings["path"]
23
+ exec "script/server", *exec_args
24
+ end
19
25
  end
20
26
 
21
27
  Signal.trap("TERM") do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnoso-fafactory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gnoso, Inc.