Sha256: 9c261d465641c7946e4f2baf74c7e45858904bf1d0292de357a5980d46ee0e18
Contents?: true
Size: 723 Bytes
Versions: 17
Compression:
Stored size: 723 Bytes
Contents
module Vx module Builder class Script Clojure = Struct.new(:app) do include Helper::TraceShCommand def call(env) if enabled?(env) env.announce.tap do |i| i << trace_sh_command("lein version") end env.install.tap 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 end end app.call(env) end private def enabled?(env) env.source.language == 'clojure' end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems