13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/basic.rb', line 13
def initialize(bundle_config=nil, project_path=nil)
if bundle_config && project_path
@bundle_configs = [bundle_config]
@bundle_options = { :project_path => project_path }
else
@bundle_options = Fusion.instance_variable_get('@options')
if @bundle_options[:bundle_configs]
@bundle_configs = @bundle_options[:bundle_configs]
else
@bundle_configs = YAML::load(File.open(@bundle_options[:bundle_file_path]))
end
end
@log = @bundle_options[:logger] || Logger.new(STDOUT)
end
|