lib/boot.rb in forj-0.0.16 vs lib/boot.rb in forj-0.0.17
- old
+ new
@@ -27,11 +27,11 @@
require_relative 'repositories.rb'
include Repositories
module Boot
- def boot(blueprint, cloud_provider, name, test=false)
+ def boot(blueprint, cloud_provider, name, build_config_dir, branch, test=false)
puts 'booting %s on %s' % [blueprint, cloud_provider]
# boot maestro
# get definitions from yaml
forj_dir = File.expand_path(File.dirname(__FILE__))
@@ -61,10 +61,15 @@
current_dir = Dir.pwd
home = File.expand_path('~')
build_path = home + '/.hpcloud/maestro/build'
Dir.chdir(build_path)
- command = './bin/build.sh --box-name maestro --build-config box'
+ if build_config_dir != nil
+ command = './bin/build.sh --build_ID maestro.10 --box-name maestro --build-conf-dir %s --build-config box --setBranch %s' % [build_config_dir, branch]
+ else
+ command = './bin/build.sh --build_ID maestro.10 --box-name maestro --build-config box'
+ end
+
Kernel.system(command)
Dir.chdir(current_dir)
if test
\ No newline at end of file