Class: Sunshine::RsyncRepo
- Defined in:
- lib/sunshine/repos/rsync_repo.rb
Overview
Allows uploading code directly using rsync, instead of a scm.
Instance Attribute Summary
Attributes inherited from Repo
Class Method Summary collapse
Instance Method Summary collapse
- #do_checkout(path, shell) ⇒ Object
-
#initialize(url, options = {}) ⇒ RsyncRepo
constructor
A new instance of RsyncRepo.
- #name ⇒ Object
Methods inherited from Repo
#checkout_to, detect, #get_repo_info, new_of_type, #scm_flags
Constructor Details
#initialize(url, options = {}) ⇒ RsyncRepo
Returns a new instance of RsyncRepo.
13 14 15 16 |
# File 'lib/sunshine/repos/rsync_repo.rb', line 13 def initialize url, ={} super @flags << "-r" end |
Class Method Details
.get_info(path = ".", shell = nil) ⇒ Object
8 9 10 |
# File 'lib/sunshine/repos/rsync_repo.rb', line 8 def self.get_info path=".", shell=nil {} end |
Instance Method Details
#do_checkout(path, shell) ⇒ Object
19 20 21 |
# File 'lib/sunshine/repos/rsync_repo.rb', line 19 def do_checkout path, shell shell.upload @url, path, :flags => @flags end |
#name ⇒ Object
24 25 26 |
# File 'lib/sunshine/repos/rsync_repo.rb', line 24 def name File.basename @url end |