Class: Kikubari::Deploy::GitDeployer
- Defined in:
- lib/deployer/deployer_git.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Deployer
Instance Method Summary collapse
-
#do_deploy ⇒ Object
deploys a git repository to given folder.
Methods inherited from Deployer
#after_deploy_run, #before_deploy_run, #capture_stderr, #create_current_symlink_folder, #create_deploy_structure, #create_release_folder, #create_structure, #create_sylinked_folders, #create_symlink, #create_symlinked_files, #deploy, #execute_shell, #has_after_deploy_run_commands, #has_before_deploy_run_commands, #initialize, #rotate_folders, #test_files
Constructor Details
This class inherits a constructor from Kikubari::Deploy::Deployer
Instance Method Details
#do_deploy ⇒ Object
deploys a git repository to given folder
15 16 17 18 19 |
# File 'lib/deployer/deployer_git.rb', line 15 def do_deploy branch = @config.config["branch"] || "master" %x(git clone #{@config.config["origin"]} -b #{branch} #{@config.env_time_folder} ) FileUtils.rm_rf("#{@config.env_time_folder}/.git") end |