capistrano-scm-copy 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 526028ffaf23848050a0849d784b7225d6ccbe25
4
- data.tar.gz: 57663d65480ec0275db3aa213a787fb0b992b725
3
+ metadata.gz: 4b87a57ba0b464d2504076cef5454ba399a68fa9
4
+ data.tar.gz: d368c8077c987de08ec03a1219bfdd6157fbf53b
5
5
  SHA512:
6
- metadata.gz: 72b73599c85a64c785bec6a584d7dac28f7bc4be082b5882e8d54324d29adff264a1acedc7ab9ce4b0f9f88585727ead716f0971e2dcd142ff33e3dbb8fbf0ed
7
- data.tar.gz: 30831d3a1f1ecbcfaa902846af27be1ee341884bc30542840c508b395406d52130adb06d76c726f66c89b47e066381e6015cbc6cb9c0f9ff9d19a9149b8ed2f0
6
+ metadata.gz: cc9ad2071e33cb4c119a9bb4f730472946205947c587c9b513ba0c3146fd1fdc6a340a295d1d57d9d865591e0c32224458c9f0d15daf0c5948004784fd30d3e6
7
+ data.tar.gz: 07c063529af8cd6f6ce15caf3028bf7bb8b600b323c4a506addd0f4f2a37551f8a2603b4a11c066aad07c5d92e661a8b8ef43b07f9b62cccbe5c287113da08b3
data/README.md CHANGED
@@ -32,8 +32,6 @@ Then switch the `:scm` option to `:copy` in `config/deploy.rb`:
32
32
  TODO
33
33
  ====
34
34
 
35
- - Make exclude filters configurable
36
-
37
35
  I'm new to programming for Capistrano and even Ruby in general. So any feedback is appreciated.
38
36
 
39
37
  License
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "capistrano-scm-copy"
6
- s.version = "0.1.0"
6
+ s.version = "0.2.0"
7
7
  s.licenses = ["MIT"]
8
8
  s.authors = ["Benno van den Berg"]
9
9
  s.email = ["bennovandenberg@gmail.com"]
@@ -2,10 +2,11 @@ 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
6
 
6
7
  desc "Archive files to #{archive_name}"
7
8
  file archive_name => FileList[include_dir].exclude(archive_name) do |t|
8
- sh "tar -cvzf #{t.name} #{t.prerequisites.join(" ")}"
9
+ sh "tar -cvzf #{t.name} #{t.prerequisites.join(" ")}" + (exclude_dir.empty? ? "" : " --exclude #{exclude_dir}")
9
10
  end
10
11
 
11
12
  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.1.0
4
+ version: 0.2.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-06-05 00:00:00.000000000 Z
11
+ date: 2014-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano