lib/boot.rb in forj-0.0.8 vs lib/boot.rb in forj-0.0.9
- old
+ new
@@ -30,11 +30,11 @@
def boot(blueprint, cloud_provider, name, test=false)
puts 'booting %s on %s' % [blueprint, cloud_provider]
# boot maestro
# get definitions from yaml
- current_dir = Dir.pwd
- Dir.chdir(current_dir)
+ forj_dir = File.expand_path(File.dirname(__FILE__))
+ Dir.chdir(forj_dir)
definitions = YamlParse.get_values('../lib/catalog.yaml')
# clone the maestro repo
Repositories.clone_repo
\ No newline at end of file