lib/linner/command.rb in linner-0.2.0 vs lib/linner/command.rb in linner-0.3.0

- old
+ new

@@ -15,12 +15,13 @@ puts Linner::VERSION end desc "build", "build assets" def build + Linner.compile = true Notifier.info do - Linner.perform compile: true + Linner.perform end end desc "watch", "watch assets" def watch @@ -43,21 +44,21 @@ end end desc "clean", "clean assets" def clean - FileUtils.rm_rf Dir.glob("#{Linner.environment.public_folder}/*") + FileUtils.rm_rf Dir.glob("#{env.public_folder}/*") end desc "new", "create the skeleton of project" def new(name) directory('templates', name) chmod("#{name}/bin/server", 0755) end - private + private def env - Linner.environment + Linner.env end end end