Module: Capistrano::Local::PlainStrategy
- Defined in:
- lib/capistrano/scm-local.rb
Instance Method Summary collapse
Instance Method Details
#check ⇒ Object
13 14 15 16 |
# File 'lib/capistrano/scm-local.rb', line 13 def check puts repo_url test! " [ -e #{repo_url} ] " end |
#release ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/capistrano/scm-local.rb', line 18 def release file_list = Dir.glob(File.join(repo_url, '*')).concat(Dir.glob(File.join(repo_url, '.[^.]*'))) on release_roles :all, in: :parallel do |host| file_list.each { |r| upload! r, release_path, recursive: true } end end |