bin/nailed in nailed-0.0.3 vs bin/nailed in nailed-0.0.4

- old
+ new

@@ -14,19 +14,18 @@ opt :github, "Refresh github database records", :short => 'g' opt :l3, "Refresh l3 trend database records", :short => 'l' opt :server, "Start a dashboard webinterface", :short => 's' end -if opts.map{|k,v| v == false} - puts "try nailed -h" -end +abort("try nailed -h") if opts.all?{|k,v| v.is_a?(FalseClass)} if opts[:server_given] + watch_dir = File.join(File.expand_path("..", File.dirname(__FILE__)),"config") if Nailed::PRODUCTS["products"].nil? abort("Add some data, there is nothing to be shown") else begin - `#{File.join("rerun ",File.expand_path("..", File.dirname(__FILE__)),"bin","app")}` + `#{File.join("rerun --dir #{watch_dir} ",File.expand_path("..", File.dirname(__FILE__)),"bin","app")}` rescue Interrupt sleep 2 exit end end