Class: Vx::Builder::ScriptBuilder::Scala
- Defined in:
- lib/vx/builder/script_builder/scala.rb
Constant Summary collapse
- DEFAULT_SCALA =
'2.10.3'
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#deploy?, #do_after_deploy, #do_announce, #do_before_deploy, #do_before_install, #do_before_script, #do_cache_key, #do_cached_directories, #do_deploy_script, #do_init, #do_install, #do_script
Methods included from Helper::VxvmInstall
Methods included from Helper::TraceShCommand
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/vx/builder/script_builder/scala.rb', line 9 def call(env) if enabled?(env) do_cache_key(env) do |i| i << "scala-#{scala env}" end do_announce(env) do |i| i << trace_sh_command("export SCALA_VERSION=#{scala env}") end do_install(env) do |i| i << "if [[ -d project || -f build.sbt ]] ; then #{trace_sh_command "sbt ++#{scala env} update"} ; fi" end do_script(env) do |i| i << "if [[ -d project || -f build.sbt ]] ; then #{trace_sh_command "sbt ++#{scala env} test"} ; fi" end do_cached_directories(env) do |i| i << "~/.sbt" i << "~/.ivy2" end end app.call(env) end |