bam 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bam.rb +10 -2
- data/lib/bam/version.rb +1 -1
- 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: 895740cc990989ecab2db25404cdb37297f32fd9
|
4
|
+
data.tar.gz: cf65f4f35d8b677ec1d06d63f599da89d65dcd11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c30fdded117c4ed017655fe62fbb127c3a37d761519f44850c47d706783ac28a75b04415af44d6e45e991a22eb106d0b0acfb2e009a154d59398e4f0dcc029f1
|
7
|
+
data.tar.gz: ebbe53e9d34c7a0213b520e9f9c35b5d5a9d6ad352493a561b087fab66a9e0f4b1072cd958b08cac1da2fdf738c1ca479748f023b55bb36bb0fc527ef42eae39
|
data/lib/bam.rb
CHANGED
@@ -24,12 +24,20 @@ module Bam
|
|
24
24
|
return "" if !has_git_ignores? || !has_git?
|
25
25
|
git_ignore = File.join PWD, ".gitignore"
|
26
26
|
exclusions = `cat #{git_ignore}`.split("\n")
|
27
|
-
|
27
|
+
# ensure we remove any commented out .gitignores
|
28
|
+
exclusions = exclusions.select { |exclusion| exclusion[0,1] != '#' }
|
29
|
+
exclusions = exclusions - @task_config[:always_include]
|
30
|
+
if @dry_run
|
31
|
+
puts wrap_top("EXCLUSIONS:")
|
32
|
+
puts exclusions.join("\n")
|
33
|
+
end
|
34
|
+
exclusions
|
28
35
|
end
|
29
36
|
|
30
37
|
def exclusions
|
31
38
|
exclude_list = get_exclusions.map { |e| "--exclude '#{e}' " }
|
32
39
|
exclude_list = exclude_list.join
|
40
|
+
exclude_list
|
33
41
|
end
|
34
42
|
|
35
43
|
def remote_exec(name)
|
@@ -49,7 +57,7 @@ module Bam
|
|
49
57
|
puts(wrap_top("STARTING DEPLOYMENT:"))
|
50
58
|
# use -avzC to exclude .git and .svn repositories
|
51
59
|
cmd = "rsync -avzC #{@from} #{@server}:#{@to} #{exclusions}"
|
52
|
-
output = "OUTPUT
|
60
|
+
output = "OUTPUT:\n#{cmd}"
|
53
61
|
puts(wrap_borders(output))
|
54
62
|
puts "POST-DEPLOYMENT TASKS: \n\n"
|
55
63
|
deploy_tasks @task_config[:post]
|
data/lib/bam/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vann Ek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A super simple deployment utility using rsync and git
|
14
14
|
email:
|