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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6479e61abefc814081c0a514ffd00a0295db9f0d
4
- data.tar.gz: 433ace76c70c4461d91a1eb514523e9cdb9f57eb
3
+ metadata.gz: 86e904b2e06c8c70df12dd4e301e97099f1619d4
4
+ data.tar.gz: 0044b426419d4fee6189e79f240139cb7fb76f7a
5
5
  SHA512:
6
- metadata.gz: c199172a1401517d3c0dff85ce3368879f70b4ca506d60e851fd45baf22e3dd14590953f7533f96fa6b63210a5a886ba5343a5f59c5551f0a1e1fe849dba37ed
7
- data.tar.gz: 384d08b0ace02b48ba8bf52e333dc5a4ebc3ca4e2a61f942f061c570a8d46ba5a3a1200479a5aec4f4a601eb9c1fbbced1c81c15efb98c9cf3a7b84f8472b184
6
+ metadata.gz: 203001699d0cef653430a2cdc9cbf4b9bc8670377253e4abb2560ae112dc730b747b3b9a08cdc72a5934d43372d6d1e8f2a8b3a5446d1727f1cc5bb97f27e919
7
+ data.tar.gz: 3fbf19b756ae0ee62fd35f3b4d0e6e3c751251b8afea2a58620a088390bfbe718e949f06aa8d6ef0f47f41e0ded8f142a48a47eaa71ca1fee5a1d366a5c8fc7d
@@ -1,6 +1,9 @@
1
1
  # Changelog
2
2
 
3
- ### 1.2.5
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
@@ -18,14 +18,18 @@ module Octopress
18
18
  # Initialize, pull, copy and deploy.
19
19
  #
20
20
  def push
21
- check_branch
22
- init_repo
23
- puts "Syncing #{@site_dir.sub(Dir.pwd.strip+'/', '')} files to #{@repo}."
24
- FileUtils.cd @deploy_dir do
25
- git_pull
26
- clean_deploy
27
- copy_site
28
- git_push
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
- puts "Syncing #{@local} files to #{@remote_path} with rsync."
24
- system cmd
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
@@ -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
- puts "Syncing #{@local} files to #{@bucket_name} on S3."
38
- write_files
39
- delete_files if delete_files?
40
- status_message
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
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Deploy
3
- VERSION = "1.2.5"
3
+ VERSION = "1.2.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis