capistrano-scm-copy 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/capistrano-scm-copy.gemspec +1 -1
- data/lib/capistrano/tasks/copy.rake +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37180687868b3c651d4bf23cdc65f1ce7c5b590
|
4
|
+
data.tar.gz: 7a22bbf1051146d8042d494ddaebc1181d00537d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e6e35cc9a0becdbdeb6fcb4f1c34473b4ea229e1880ccd0d47b4173eede786bf5854a90b3dd728e5ce6295227fef3831e7ec0c6345e3b720427e3e9c8fe3826
|
7
|
+
data.tar.gz: 008e2397856b2a50e100896cf74cdaeb3395b6d9db0f5fffa2c4013c0ed089b78796b5bcf4a9b61329d70c76bf676ed51d1cf629804ed705f16ea06c7f4600d9
|
data/README.md
CHANGED
@@ -42,6 +42,17 @@ The MIT License (MIT)
|
|
42
42
|
Changelog
|
43
43
|
=========
|
44
44
|
|
45
|
+
0.3.0
|
46
|
+
-----
|
47
|
+
|
48
|
+
- Fix issue when running on Mac OS X (see PR #9)
|
49
|
+
- Allow exclude directory to be an Array (see PR #9)
|
50
|
+
|
51
|
+
0.2.0
|
52
|
+
-----
|
53
|
+
|
54
|
+
- Add `exclude_dir`
|
55
|
+
|
45
56
|
0.1.0
|
46
57
|
-----
|
47
58
|
|
data/capistrano-scm-copy.gemspec
CHANGED
@@ -2,11 +2,14 @@ namespace :copy do
|
|
2
2
|
|
3
3
|
archive_name = "archive.tar.gz"
|
4
4
|
include_dir = fetch(:include_dir) || "*"
|
5
|
-
exclude_dir = fetch(:exclude_dir)
|
5
|
+
exclude_dir = Array(fetch(:exclude_dir))
|
6
|
+
|
7
|
+
exclude_args = exclude_dir.map { |dir| "--exclude '#{dir}'"}
|
6
8
|
|
7
9
|
desc "Archive files to #{archive_name}"
|
8
10
|
file archive_name => FileList[include_dir].exclude(archive_name) do |t|
|
9
|
-
|
11
|
+
cmd = ["tar -cvzf #{t.name}", *exclude_args, *t.prerequisites]
|
12
|
+
sh cmd.join(' ')
|
10
13
|
end
|
11
14
|
|
12
15
|
desc "Deploy #{archive_name} to release_path"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-scm-copy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benno van den Berg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|