lib/linner/command.rb in linner-0.1.0 vs lib/linner/command.rb in linner-0.1.1

- old
+ new

@@ -9,36 +9,36 @@ File.dirname(__FILE__) end desc "build", "build assets" def build - Linner::Notifier.info do + Notifier.info do Linner.perform compile: true end end desc "watch", "watch assets" def watch proc = Proc.new do |modified, added, removed| begin - Linner::Notifier.info{ Linner.perform } + Notifier.info{ Linner.perform } rescue - Linner::Notifier.error $! + Notifier.error $! end end proc.call listener = Listen.to "app/", "vendor/", "test/", filter: /\.(js|coffee|css|sass|scss)$/ listener.change &proc trap :INT do - Linner::Notifier.exit + Notifier.exit exit! end listener.start! end desc "clean", "clean assets" def clean - FileUtils.rm_rf File.join(Linner.environment.public_folder, "/.") + FileUtils.rm_rf Dir.glob("#{Linner.environment.public_folder}/*") end desc "new", "create the skeleton of project" def new(name) directory('templates', name)