lib/awestruct/cli/invoker.rb in awestruct-0.5.7 vs lib/awestruct/cli/invoker.rb in awestruct-0.6.0.RC1
- old
+ new
@@ -95,11 +95,11 @@
if ( !File.exist?( site_yaml_file ) )
abort( "No config file at #{site_yaml_file}" )
end
- site_yaml = YAML.load( ERB.new(File.read( site_yaml_file )).result )
+ site_yaml = YAML.load( ERB.new(File.read( site_yaml_file ), nil, '<>').result )
if ( !site_yaml )
abort( "Failed to parse #{site_yaml_file}" )
end
@@ -128,10 +128,12 @@
def setup_config()
@config = Awestruct::Config.new( @options )
@config.track_dependencies = true if ( @options.auto )
@config.verbose = true if ( @options.verbose )
- @config.quiet = true if ( @options.quiet )
+ @config.debug = @options.debug
+ @config.quiet = true if @options.quiet
+ @config.perf = true if @options.perf_log
end
def invoke_init()
Awestruct::CLI::Init.new( @options.source_dir, @options.framework, @options.scaffold ).run
end