Module: CiInACan::Cloner
- Defined in:
- lib/ci_in_a_can/cloner.rb
Class Method Summary collapse
- .clone_a_local_copy_for(build) ⇒ Object
- .execute(command) ⇒ Object
- .the_commands_to_clone_the(build) ⇒ Object
Class Method Details
.clone_a_local_copy_for(build) ⇒ Object
5 6 7 |
# File 'lib/ci_in_a_can/cloner.rb', line 5 def self.clone_a_local_copy_for build execute the_commands_to_clone_the(build) end |
.execute(command) ⇒ Object
9 10 11 |
# File 'lib/ci_in_a_can/cloner.rb', line 9 def self.execute command CiInACan::Bash.run command end |
.the_commands_to_clone_the(build) ⇒ Object
13 14 15 16 17 |
# File 'lib/ci_in_a_can/cloner.rb', line 13 def self.the_commands_to_clone_the build ["git clone #{build.git_ssh} #{build.local_location}", "cd #{build.local_location}", "git checkout #{build.sha}"].join('; ') end |