capistrano-scm-local 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +3 -3
- data/capistrano-scm-local.gemspec +1 -1
- data/lib/capistrano/local.rb +3 -3
- data/lib/capistrano/tasks/local.rake +0 -1
- metadata +1 -1
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
|
-
|
25
|
-
|
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.
|
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}
|
data/lib/capistrano/local.rb
CHANGED
@@ -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
|