Sha256: fd98586b9153656653769c849f6aaa9e499da8fa0ddbad34704c0b9a10da9b8a

Contents?: true

Size: 619 Bytes

Versions: 76

Compression:

Stored size: 619 Bytes

Contents

module Vx
  module Builder
    class ScriptBuilder

      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

76 entries across 76 versions & 1 rubygems

Version Path
vx-builder-0.4.0 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.14 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.13 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.12 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.11 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.10 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.9 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.8 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.7 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.6 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.5 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.4 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.3 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.2 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.1 lib/vx/builder/script_builder/clojure.rb
vx-builder-0.3.0 lib/vx/builder/script_builder/clojure.rb