Sha256: bd087fa482ab1f1ea668ed3266511efa1f8e0578995392e253741815978e45fe

Contents?: true

Size: 612 Bytes

Versions: 7

Compression:

Stored size: 612 Bytes

Contents

module Vx
  module Builder
    class Script

      class Clojure < Base

        def call(env)
          if enabled?(env)
            do_announce(env) do |i|
              i << trace_sh_command("lein version")
            end

            do_install(env) do |i|
              i << trace_sh_command("lein deps")
            end

            do_script(env) do |i|
              i << trace_sh_command("lein test")
            end
          end

          app.call(env)
        end

        private

          def enabled?(env)
            env.source.language == 'clojure'
          end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vx-builder-0.3.3 lib/vx/builder/script_builder/clojure.rb-e
vx-builder-0.3.2 lib/vx/builder/script_builder/clojure.rb-e
vx-builder-0.3.1 lib/vx/builder/script_builder/clojure.rb-e
vx-builder-0.3.0 lib/vx/builder/script_builder/clojure.rb-e
vx-builder-0.2.2 lib/vx/builder/script/clojure.rb
vx-builder-0.2.1 lib/vx/builder/script/clojure.rb
vx-builder-0.2.0 lib/vx/builder/script/clojure.rb