capistrano-scm-local 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -20,6 +20,6 @@ set :local_strategy, :archive
20
20
  set :repo_url, 'path/to/source'
21
21
  ```
22
22
 
23
- local_strategy can be :default or :archive
24
- :default - directly uploads folder
25
- :archive - makes tar.gz, uploads it and unpack
23
+ :local_strategy can be :default or :archive.
24
+ **:default** - directly uploads folder;
25
+ **:archive** - makes tar.gz, uploads it and unpack.
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "capistrano-scm-local"
7
- gem.version = '0.1.0'
7
+ gem.version = '0.1.1'
8
8
  gem.authors = ["Boris Gorbylev"]
9
9
  gem.email = ["ekho@ekho.name"]
10
10
  gem.description = %q{Capistrano extension for deploying form local directory}
@@ -14,7 +14,7 @@ class Capistrano::Local < Capistrano::SCM
14
14
  end
15
15
 
16
16
  def release
17
- on release_roles :all do |host|
17
+ on release_roles :all, in: :parallel do |host|
18
18
  file_list = Dir.glob(repo_url + '/*').concat(Dir.glob(repo_url + '/.[^.]*'))
19
19
  file_list.each { |r| upload! r, release_path, recursive: true }
20
20
  end
@@ -39,8 +39,8 @@ class Capistrano::Local < Capistrano::SCM
39
39
  end
40
40
 
41
41
  # uploading and unpacking
42
- on release_roles :all do |host|
43
- upload! archive, repo_path
42
+ on release_roles :all, in: :parallel do |host|
43
+ upload! archive, repo_path, verbose: false
44
44
  remote_archive = File.join(repo_path, File.basename(archive))
45
45
  execute :tar, 'xzf', remote_archive, '-C', release_path
46
46
  execute :rm, '-f', remote_archive
@@ -24,7 +24,6 @@ namespace :local do
24
24
  on release_roles :all do
25
25
  within repo_path do
26
26
  execute :mkdir, '-p', release_path
27
- strategy.release
28
27
  end
29
28
  end
30
29
  strategy.release
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-scm-local
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: