itrigga-cap_deploy 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/itrigga/cap_deploy/filesystem_utils.rb +5 -5
- metadata +36 -34
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.6
|
@@ -4,13 +4,13 @@
|
|
4
4
|
end
|
5
5
|
|
6
6
|
def delete_files_from_dir1_which_exist_in_dir2(delete_from_dir, exist_in_dir)
|
7
|
-
run "find #{exist_in_dir} -type f | xargs -n1 basename | xargs -I{} bash -c 'test -f #{delete_from_dir}/{} && rm -v #{delete_from_dir}/{} || echo no file #{delete_from_dir}/{} to delete'"
|
7
|
+
run "#{sudo} find #{exist_in_dir} -type f | xargs -n1 basename | xargs -I{} bash -c 'test -f #{delete_from_dir}/{} && rm -v #{delete_from_dir}/{} || echo no file #{delete_from_dir}/{} to delete'"
|
8
8
|
end
|
9
9
|
|
10
10
|
def symlink_files_in_dir(from_dir,to_dir)
|
11
11
|
delete_files_from_dir1_which_exist_in_dir2(to_dir, from_dir)
|
12
12
|
|
13
|
-
run "(#{sudo} test -d #{from_dir} && ( find #{from_dir}/ -mindepth 1 -print | xargs --verbose #{sudo} ln -s -f -t #{to_dir} ) ) || echo 'nothing to link'"
|
13
|
+
run "(#{sudo} test -d #{from_dir} && ( #{sudo} find #{from_dir}/ -mindepth 1 -print | xargs --verbose #{sudo} ln -s -f -t #{to_dir} ) ) || echo 'nothing to link'"
|
14
14
|
end
|
15
15
|
|
16
16
|
#
|
@@ -19,7 +19,7 @@
|
|
19
19
|
def symlink_files_in_dir_by_regex(from_dir,to_dir,regex)
|
20
20
|
delete_files_from_dir1_which_exist_in_dir2(to_dir, from_dir)
|
21
21
|
|
22
|
-
run "(#{sudo} test -d #{from_dir} && ( find #{from_dir}/ -mindepth 1 -regex '#{regex}' -print | xargs --verbose #{sudo} ln -s -f -t #{to_dir} ) ) || echo 'nothing to link'"
|
22
|
+
run "(#{sudo} test -d #{from_dir} && ( #{sudo} find #{from_dir}/ -mindepth 1 -regex '#{regex}' -print | xargs --verbose #{sudo} ln -s -f -t #{to_dir} ) ) || echo 'nothing to link'"
|
23
23
|
end
|
24
24
|
|
25
25
|
def mkdir_unless_exists( dir )
|
@@ -53,9 +53,9 @@
|
|
53
53
|
|
54
54
|
def set_permissions_on_files_in_dir( opts )
|
55
55
|
if opts[:ownership]
|
56
|
-
run "(test -d #{opts[:dir]} && find #{opts[:dir]} -mindepth 1 | xargs #{sudo} chown #{opts[:ownership]} ) || echo couldnt find #{opts[:dir]}"
|
56
|
+
run "(test -d #{opts[:dir]} && #{sudo} find #{opts[:dir]} -mindepth 1 | xargs #{sudo} chown #{opts[:ownership]} ) || echo couldnt find #{opts[:dir]}"
|
57
57
|
end
|
58
58
|
if opts[:permissions]
|
59
|
-
run "(test -d #{opts[:dir]} && find #{opts[:dir]} -mindepth 1 | xargs #{sudo} chmod #{opts[:permissions]} ) || echo couldnt find #{opts[:dir]}"
|
59
|
+
run "(test -d #{opts[:dir]} && #{sudo} find #{opts[:dir]} -mindepth 1 | xargs #{sudo} chmod #{opts[:permissions]} ) || echo couldnt find #{opts[:dir]}"
|
60
60
|
end
|
61
61
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itrigga-cap_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 6
|
10
|
+
version: 0.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Al Davidson
|
@@ -15,10 +15,14 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-11-
|
18
|
+
date: 2011-11-04 00:00:00 +00:00
|
19
|
+
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
+
prerelease: false
|
23
|
+
name: bundler
|
24
|
+
type: :development
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
26
|
none: false
|
23
27
|
requirements:
|
24
28
|
- - ~>
|
@@ -29,12 +33,12 @@ dependencies:
|
|
29
33
|
- 0
|
30
34
|
- 0
|
31
35
|
version: 1.0.0
|
32
|
-
|
33
|
-
|
36
|
+
requirement: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
34
38
|
prerelease: false
|
39
|
+
name: jeweler
|
35
40
|
type: :development
|
36
|
-
|
37
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
42
|
none: false
|
39
43
|
requirements:
|
40
44
|
- - ~>
|
@@ -45,12 +49,12 @@ dependencies:
|
|
45
49
|
- 6
|
46
50
|
- 4
|
47
51
|
version: 1.6.4
|
48
|
-
|
49
|
-
|
52
|
+
requirement: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
50
54
|
prerelease: false
|
55
|
+
name: rcov
|
51
56
|
type: :development
|
52
|
-
|
53
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
58
|
none: false
|
55
59
|
requirements:
|
56
60
|
- - ">="
|
@@ -59,12 +63,12 @@ dependencies:
|
|
59
63
|
segments:
|
60
64
|
- 0
|
61
65
|
version: "0"
|
62
|
-
|
63
|
-
|
66
|
+
requirement: *id003
|
67
|
+
- !ruby/object:Gem::Dependency
|
64
68
|
prerelease: false
|
69
|
+
name: jeweler
|
65
70
|
type: :development
|
66
|
-
|
67
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
71
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
72
|
none: false
|
69
73
|
requirements:
|
70
74
|
- - ~>
|
@@ -75,12 +79,12 @@ dependencies:
|
|
75
79
|
- 6
|
76
80
|
- 4
|
77
81
|
version: 1.6.4
|
78
|
-
|
79
|
-
|
82
|
+
requirement: *id004
|
83
|
+
- !ruby/object:Gem::Dependency
|
80
84
|
prerelease: false
|
85
|
+
name: rspec
|
81
86
|
type: :development
|
82
|
-
|
83
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
87
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
84
88
|
none: false
|
85
89
|
requirements:
|
86
90
|
- - ">="
|
@@ -89,12 +93,12 @@ dependencies:
|
|
89
93
|
segments:
|
90
94
|
- 0
|
91
95
|
version: "0"
|
92
|
-
|
93
|
-
|
96
|
+
requirement: *id005
|
97
|
+
- !ruby/object:Gem::Dependency
|
94
98
|
prerelease: false
|
99
|
+
name: capistrano
|
95
100
|
type: :development
|
96
|
-
|
97
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
101
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
98
102
|
none: false
|
99
103
|
requirements:
|
100
104
|
- - ">="
|
@@ -103,12 +107,12 @@ dependencies:
|
|
103
107
|
segments:
|
104
108
|
- 0
|
105
109
|
version: "0"
|
106
|
-
|
107
|
-
|
110
|
+
requirement: *id006
|
111
|
+
- !ruby/object:Gem::Dependency
|
108
112
|
prerelease: false
|
113
|
+
name: capistrano-ext
|
109
114
|
type: :development
|
110
|
-
|
111
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
115
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
112
116
|
none: false
|
113
117
|
requirements:
|
114
118
|
- - ">="
|
@@ -117,10 +121,7 @@ dependencies:
|
|
117
121
|
segments:
|
118
122
|
- 0
|
119
123
|
version: "0"
|
120
|
-
|
121
|
-
name: capistrano-ext
|
122
|
-
prerelease: false
|
123
|
-
type: :development
|
124
|
+
requirement: *id007
|
124
125
|
description: "Provides\n - handy filesystem utility methods\n - common capistrano tasks\n - common hooks for deployment \n "
|
125
126
|
email: aldavidson@itrigga.com
|
126
127
|
executables: []
|
@@ -144,6 +145,7 @@ files:
|
|
144
145
|
- placeholder.txt
|
145
146
|
- test/helper.rb
|
146
147
|
- test/test_itrigga-cap_deploy.rb
|
148
|
+
has_rdoc: true
|
147
149
|
homepage: http://gems.itrigga.com/itrigga-cap_deploy
|
148
150
|
licenses:
|
149
151
|
- MIT
|
@@ -175,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
177
|
requirements: []
|
176
178
|
|
177
179
|
rubyforge_project:
|
178
|
-
rubygems_version: 1.
|
180
|
+
rubygems_version: 1.4.2
|
179
181
|
signing_key:
|
180
182
|
specification_version: 3
|
181
183
|
summary: Common deployment tasks
|