lib/build-cloud.rb in build-cloud-0.0.3 vs lib/build-cloud.rb in build-cloud-0.0.4
- old
+ new
@@ -29,10 +29,15 @@
end
end
include_files.each do |include_file|
- include_path = File.join( File.dirname( first_config_file ), include_file)
+ include_path = ''
+ if include_file.include? '/'
+ include_path = include_file
+ else
+ include_path = File.join( File.dirname( first_config_file ), include_file)
+ end
if File.exists?( include_path )
@log.info( "Including YAML file #{include_path}" )
included_conf = YAML::load( File.open( include_path ) )
@config = @config.merge( included_conf )