lib/vx/builder/script/clojure.rb in vx-builder-0.1.8 vs lib/vx/builder/script/clojure.rb in vx-builder-0.2.0

- old
+ new

@@ -1,26 +1,22 @@ module Vx module Builder class Script - Clojure = Struct.new(:app) do + class Clojure < Base - include Helper::TraceShCommand - def call(env) if enabled?(env) - env.announce.tap do |i| + do_announce(env) do |i| i << trace_sh_command("lein version") end - env.install.tap do |i| + do_install(env) do |i| i << trace_sh_command("lein deps") end - if env.source.script.empty? - env.script.tap do |i| - i << trace_sh_command("lein test") - end + do_script(env) do |i| + i << trace_sh_command("lein test") end end app.call(env) end