capistrano-remote-cache-with-project-root 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -22,8 +22,8 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
Add these lines to your Capistrano recipe:
|
24
24
|
|
25
|
-
|
26
|
-
|
25
|
+
set :deploy_via, "remote_cache_with_project_root"
|
26
|
+
set :project_root, "relative/path/to/your/project"
|
27
27
|
|
28
28
|
## Contributing
|
29
29
|
|
@@ -13,21 +13,21 @@ module Capistrano
|
|
13
13
|
# deploy.rb
|
14
14
|
class RemoteCacheWithProjectRoot < RemoteCache
|
15
15
|
|
16
|
-
VERSION = "0.0.
|
16
|
+
VERSION = "0.0.2"
|
17
17
|
|
18
18
|
def copy_repository_cache
|
19
19
|
|
20
|
-
cached_project_root = File.join(repository_cache, project_root)
|
20
|
+
cached_project_root = File.join(repository_cache, project_root)
|
21
21
|
|
22
22
|
logger.trace "copying the cached version from #{cached_project_root} to #{configuration[:release_path]}"
|
23
23
|
|
24
|
-
run "mkdir -p #{configuration[:release_path]}"
|
25
24
|
|
26
25
|
if copy_exclude.empty?
|
27
|
-
run "cp -RPp #{cached_project_root}
|
26
|
+
run "cp -RPp #{cached_project_root} #{configuration[:release_path]} && #{mark}"
|
28
27
|
else
|
28
|
+
run "mkdir -p #{configuration[:release_path]}"
|
29
29
|
exclusions = copy_exclude.map { |e| "--exclude=\"#{e}\"" }.join(' ')
|
30
|
-
run "rsync -lrpt #{exclusions} #{cached_project_root}/* #{configuration[:release_path]} && #{mark}"
|
30
|
+
run "rsync -lrpt #{exclusions} #{cached_project_root}/* #{configuration[:release_path]} && #{mark}"
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-remote-cache-with-project-root
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-05-23 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
|
-
requirement: &
|
16
|
+
requirement: &9395040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '2.7'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *9395040
|
25
25
|
description: Capistrano Strategy for deployment of a project in a subdirectory
|
26
26
|
email:
|
27
27
|
- matteo.collina@gmail.com
|