bam 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bam.rb +10 -2
  3. data/lib/bam/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6133090fcc988d9ea1c9c3168aea68b8a05addc
4
- data.tar.gz: f303d8b78d31fabbe5a9d317b66443ccc976259e
3
+ metadata.gz: 895740cc990989ecab2db25404cdb37297f32fd9
4
+ data.tar.gz: cf65f4f35d8b677ec1d06d63f599da89d65dcd11
5
5
  SHA512:
6
- metadata.gz: 4e7ed579472c196bf94d58d9be094894f2000843664f1e875d971cb8fe97f5000f07c2e25c8b26d1c30eae3ed051fde2909539689ad503f5aa2840dc79b34117
7
- data.tar.gz: 4fe3931c07e71081dfa42a28a04244b876e3dbed4bf75a6ee7985f923433fab2999c6d7991a3c716a3a66bccf9473349e49c57cc31d3f7aca3f34f96b894be47
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
- exclusions - @task_config[:always_include]
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: #{cmd}"
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]
@@ -1,3 +1,3 @@
1
1
  module Bam
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-19 00:00:00.000000000 Z
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: