bin/retter in retter-0.2.2 vs bin/retter in retter-0.2.3
- old
+ new
@@ -1,22 +1,26 @@
#!/usr/bin/env ruby
# coding: utf-8
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
+trap :INT do
+ print "\r"
+ exit
+end
+
require 'retter'
-Retter.load ENV
+Retter::Site.load ENV
case ARGV[0]
when 'new'
Retter::Generator::Creator.start ARGV[1..-1]
-when 'gen'
- Retter::Generator::Updator.start ARGV[1..-1]
else
begin
Retter::Command.start
rescue Errno::ENOENT
- $stderr.puts "Some files might be broken. run `retter gen $RETTER_HOME`"
+ $stderr.puts "Some files might be broken. Please re-generate site: `retter new site-name`"
+
raise
end
end