lib/template/start.rb in browser_app_base-0.1.2 vs lib/template/start.rb in browser_app_base-0.1.3

- old
+ new

@@ -49,10 +49,16 @@ # ディレクトリ移動 dir = File.dirname(File.expand_path(__FILE__)) FileUtils.cd dir # ディレクトリ作成 -$home_dir = ENV["HOME"] + "/" + dir.split("/")[-1] + "/" +pp ARGV +if ARGV[0] == "test" + $home_dir = "./" + ARGV = [] +else + $home_dir = ENV["HOME"] + "/" + dir.split("/")[-1] + "/" +end puts "home_dir=#{$home_dir}" FileUtils.mkdir_p("#{$home_dir}/logs") FileUtils.mkdir_p("#{$home_dir}/history") Output.console_and_file("#{$home_dir}/logs/app.log", true)