Class: Vx::Builder::ScriptBuilderV2::Clojure

Inherits:
Base
  • Object
show all
Defined in:
lib/vx/builder/script_builder_v2/clojure.rb

Instance Attribute Summary

Attributes inherited from Base

#app

Instance Method Summary collapse

Methods inherited from Base

#deploy?, #do_after_deploy, #do_before_deploy, #do_before_script, #do_cache_key, #do_cached_directories, #do_database, #do_deploy_script, #do_install, #do_script

Instance Method Details

#call(env) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/vx/builder/script_builder_v2/clojure.rb', line 7

def call(env)
  if enabled?(env)

    env.stage("install").tap do |i|
      i.add_task "shell", "lein version"
      do_install(env) do
        i.add_task "shell", "lein deps"
      end
    end

    env.stage("script").tap do |i|
      do_script(env) do
        i.add_task "shell", "lein test"
      end
    end
  end

  app.call(env)
end