Class: Vx::Builder::ScriptBuilderV2::Rust
- Defined in:
- lib/vx/builder/script_builder_v2/rust.rb
Constant Summary collapse
- DEFAULT_RUST =
'0.11.0'
Instance Attribute Summary
Attributes inherited from Base
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
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_v2/rust.rb', line 9 def call(env) if enabled?(env) do_cache_key(env) do |i| i << "rust-#{rust_version env}" end env.stage("install").tap do |i| i.add_task "vxvm", "rust #{rust_version(env)}" i.add_task "shell", "rustc --version" do_install(env) do i.add_task "shell", "git submodule init" i.add_task "shell", "git submodule update" end end do_script(env) do env.stage("script").tap do |i| i.add_task "shell", "make" end end end app.call(env) end |