Class: Vx::Builder::ScriptBuilderV2::Clone
- Inherits:
-
Struct
- Object
- Struct
- Vx::Builder::ScriptBuilderV2::Clone
- Defined in:
- lib/vx/builder/script_builder_v2/clone.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
Instance Method Summary collapse
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app
7 8 9 |
# File 'lib/vx/builder/script_builder_v2/clone.rb', line 7 def app @app end |
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 |
# File 'lib/vx/builder/script_builder_v2/clone.rb', line 9 def call(env) env.stage("clone").tap do |e| e.add_task "ssh_agent", "key" => env.task.ssh_keys clone = {} clone["repo"] = env.task.src clone["dest"] = "~/#{env.task.name}" clone["branch"] = branch_name(env) clone["sha"] = env.task.sha if pr = env.task.pull_request_id clone["pr"] = pr end e.add_task "git_clone", clone end chdir!(env) app.call(env) end |