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

Version Path
vx-builder-0.1.8 lib/vx/builder/script/clojure.rb
vx-builder-0.1.7 lib/vx/builder/script/clojure.rb
vx-builder-0.1.6 lib/vx/builder/script/clojure.rb
vx-builder-0.1.5 lib/vx/builder/script/clojure.rb
vx-builder-0.1.4 lib/vx/builder/script/clojure.rb
vx-builder-0.1.3 lib/vx/builder/script/clojure.rb
vx-builder-0.1.2 lib/vx/builder/script/clojure.rb
vx-builder-0.1.1 lib/vx/builder/script/clojure.rb
vx-builder-0.1.0 lib/vx/builder/script/clojure.rb
vx-builder-0.0.29 lib/vx/builder/script/clojure.rb
vx-builder-0.0.28 lib/vx/builder/script/clojure.rb
vx-builder-0.0.27 lib/vx/builder/script/clojure.rb
vx-builder-0.0.26 lib/vx/builder/script/clojure.rb
vx-builder-0.0.25 lib/vx/builder/script/clojure.rb
vx-builder-0.0.24 lib/vx/builder/script/clojure.rb
vx-builder-0.0.23 lib/vx/builder/script/clojure.rb
vx-builder-0.0.22 lib/vx/builder/script/clojure.rb