soprano 0.91 → 0.92
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'capistrano/recipes/deploy/strategy/remote_cache'
|
2
|
+
|
3
|
+
module Soprano
|
4
|
+
module Strategy
|
5
|
+
class RemoteCacheWithProjectRoot < ::Capistrano::Deploy::Strategy::RemoteCache
|
6
|
+
protected
|
7
|
+
|
8
|
+
def copy_repository_cache
|
9
|
+
cached_project_root = File.join(repository_cache, project_root)
|
10
|
+
|
11
|
+
logger.trace "copying the cached version from #{cached_project_root} to #{configuration[:release_path]}"
|
12
|
+
|
13
|
+
if copy_exclude.empty?
|
14
|
+
run "cp -RPp #{cached_project_root} #{configuration[:release_path]} && #{mark}"
|
15
|
+
else
|
16
|
+
exclusions = copy_exclude.map { |e| "--exclude=\"#{e}\"" }.join(' ')
|
17
|
+
run "rsync -lrpt #{exclusions} #{cached_project_root}/* #{configuration[:release_path]} && #{mark}"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
Capistrano::Configuration.instance(:must_exist).load do
|
25
|
+
on :load do
|
26
|
+
unless fetch(:project_root, false)
|
27
|
+
raise 'If you require remote_cache_with_project_root, you must provide project root via set :cached_project_root when using this strategy'
|
28
|
+
end
|
29
|
+
|
30
|
+
set :strategy, Soprano::Strategy::RemoteCacheWithProjectRoot.new(self)
|
31
|
+
end
|
32
|
+
end
|
data/lib/soprano/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soprano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.92'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2151889360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,15 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.5.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 2.5.0
|
24
|
+
version_requirements: *2151889360
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
26
|
name: rake
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &2151888280 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
30
|
- - ! '>='
|
@@ -37,12 +32,7 @@ dependencies:
|
|
37
32
|
version: '0'
|
38
33
|
type: :development
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
35
|
+
version_requirements: *2151888280
|
46
36
|
description: ! "Soprano is the set of rake tasks and capistrano recipes.\n Use
|
47
37
|
it to avoid writing typical scenarios and maintaining them\n in
|
48
38
|
favour of configuring your builds and deploys declaratively."
|
@@ -66,6 +56,7 @@ files:
|
|
66
56
|
- lib/soprano/passenger.rb
|
67
57
|
- lib/soprano/remote.rb
|
68
58
|
- lib/soprano/smart_assets.rb
|
59
|
+
- lib/soprano/strategy/remote_cache_with_project_root.rb
|
69
60
|
- lib/soprano/unicorn.rb
|
70
61
|
- lib/soprano/version.rb
|
71
62
|
- soprano.gemspec
|
@@ -89,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
80
|
version: '0'
|
90
81
|
requirements: []
|
91
82
|
rubyforge_project:
|
92
|
-
rubygems_version: 1.8.
|
83
|
+
rubygems_version: 1.8.15
|
93
84
|
signing_key:
|
94
85
|
specification_version: 3
|
95
86
|
summary: Soprano is the set of rake tasks and capistrano recipes.
|