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