octopress-deploy 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/octopress-deploy/git.rb +12 -8
- data/lib/octopress-deploy/rsync.rb +6 -2
- data/lib/octopress-deploy/s3.rb +8 -4
- data/lib/octopress-deploy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86e904b2e06c8c70df12dd4e301e97099f1619d4
|
4
|
+
data.tar.gz: 0044b426419d4fee6189e79f240139cb7fb76f7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 203001699d0cef653430a2cdc9cbf4b9bc8670377253e4abb2560ae112dc730b747b3b9a08cdc72a5934d43372d6d1e8f2a8b3a5446d1727f1cc5bb97f27e919
|
7
|
+
data.tar.gz: 3fbf19b756ae0ee62fd35f3b4d0e6e3c751251b8afea2a58620a088390bfbe718e949f06aa8d6ef0f47f41e0ded8f142a48a47eaa71ca1fee5a1d366a5c8fc7d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
### 1.2.
|
3
|
+
### 1.2.6 - 2015-05-15
|
4
|
+
- Fix: Tell users to build their sites if the build dir doesn't exist.
|
5
|
+
|
6
|
+
### 1.2.5 - 2015-05-15
|
4
7
|
- Fix: Ensures that deployment git remote is the same as configuration before pushing.
|
5
8
|
|
6
9
|
### 1.2.4 - 2015-05-11
|
data/lib/octopress-deploy/git.rb
CHANGED
@@ -18,14 +18,18 @@ module Octopress
|
|
18
18
|
# Initialize, pull, copy and deploy.
|
19
19
|
#
|
20
20
|
def push
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
21
|
+
if File.exist?(@site_dir)
|
22
|
+
check_branch
|
23
|
+
init_repo
|
24
|
+
puts "Syncing #{@site_dir.sub(Dir.pwd.strip+'/', '')} files to #{@repo}."
|
25
|
+
FileUtils.cd @deploy_dir do
|
26
|
+
git_pull
|
27
|
+
clean_deploy
|
28
|
+
copy_site
|
29
|
+
git_push
|
30
|
+
end
|
31
|
+
else
|
32
|
+
abort "Cannot find site build at #{@site_dir}. Be sure to build your site first."
|
29
33
|
end
|
30
34
|
end
|
31
35
|
|
@@ -20,8 +20,12 @@ module Octopress
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def push
|
23
|
-
|
24
|
-
|
23
|
+
if File.exist?(@site_dir)
|
24
|
+
puts "Syncing #{@local} files to #{@remote_path} with rsync."
|
25
|
+
system cmd
|
26
|
+
else
|
27
|
+
abort "Cannot find site build at #{@local}. Be sure to build your site first."
|
28
|
+
end
|
25
29
|
end
|
26
30
|
|
27
31
|
def pull
|
data/lib/octopress-deploy/s3.rb
CHANGED
@@ -34,10 +34,14 @@ module Octopress
|
|
34
34
|
if !@bucket.exists?
|
35
35
|
abort "Bucket not found: '#{@bucket_name}'. Check your configuration or create a bucket using: `octopress deploy add-bucket`"
|
36
36
|
else
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
37
|
+
if File.exist?(@local)
|
38
|
+
puts "Syncing #{@local} files to #{@bucket_name} on S3."
|
39
|
+
write_files
|
40
|
+
delete_files if delete_files?
|
41
|
+
status_message
|
42
|
+
else
|
43
|
+
abort "Cannot find site build at #{@local}. Be sure to build your site first."
|
44
|
+
end
|
41
45
|
end
|
42
46
|
end
|
43
47
|
|