octopress-deploy 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/octopress-deploy/rsync.rb +9 -6
- data/lib/octopress-deploy/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: 9ff0f9e0959198ae73ff8b5de4129ded2bd17f35
|
4
|
+
data.tar.gz: 4c93019f735109467267faa368d09abff0dce862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61a6e8bcd5edb808d9f9c182f1f52c298b49d9df6272abc5b8f333cc41d665375b8722a258518e30e7387b327229f1fc9ab5cc4c38716bcd913f118eabde8b40
|
7
|
+
data.tar.gz: bd42c36239eef26e3f11a95066d2e0c6c17aaf3016d46fef7cf91755556109d42de99fd2ad1ec5c51efa07838d0ce26bba9f6bd8268595395c6d9655c494f085
|
data/CHANGELOG.md
CHANGED
@@ -13,8 +13,8 @@ module Octopress
|
|
13
13
|
@exclude_from = @options[:exclude_from]
|
14
14
|
@exclude_from = File.expand_path(@exclude_from) if @exclude_from
|
15
15
|
@include = @options[:include]
|
16
|
-
@
|
17
|
-
@
|
16
|
+
@include_from = @options[:include_from]
|
17
|
+
@include_from = File.expand_path(@include_from) if @include_from
|
18
18
|
@delete = @options[:delete] || false
|
19
19
|
@pull_dir = @options[:dir]
|
20
20
|
end
|
@@ -35,11 +35,14 @@ module Octopress
|
|
35
35
|
|
36
36
|
cmd = "rsync "
|
37
37
|
cmd << "#{@flags} "
|
38
|
-
cmd << " -e" if @exclude_from || @exclude
|
39
38
|
cmd << " --exclude-from #{@exclude_from}" if @exclude_from
|
40
|
-
|
39
|
+
Array(@exclude).each do |e|
|
40
|
+
cmd << " --exclude #{e}"
|
41
|
+
end
|
41
42
|
cmd << " --include-from #{@include_from}" if @include_from
|
42
|
-
|
43
|
+
Array(@include).each do |i|
|
44
|
+
cmd << " --include #{i}"
|
45
|
+
end
|
43
46
|
cmd << " --rsh='ssh -p#{@port}'" if @user && @port
|
44
47
|
cmd << " --delete " if @delete
|
45
48
|
|
@@ -68,7 +71,7 @@ module Octopress
|
|
68
71
|
#{"# include-from: ".ljust(40)} # Path to file containing list of files to include
|
69
72
|
CONFIG
|
70
73
|
end
|
71
|
-
|
74
|
+
|
72
75
|
end
|
73
76
|
end
|
74
77
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorator
|