octopress-deploy 1.0.0.alpha.0 → 1.0.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66021404123816e4820561fd5fe7947a5d81b8a4
4
- data.tar.gz: 5b0576fa6dfa5a337a66ff1359f130f4c94709be
3
+ metadata.gz: 10f414864560fd38076f95cf3ac0b16400794a6c
4
+ data.tar.gz: 5ee9dd24d6a7df9ffc0215377cbdc99562138c57
5
5
  SHA512:
6
- metadata.gz: e94e8a096b77d825539c1a0b4934ee1a72d4ff22e045a396dd997bb77c6fec3fea9755d8ca818b1953266bd8b8d2ed6adcb38dd7192a44c6eb86281599d85eba
7
- data.tar.gz: 6074f3c5f0fad12aec8f7502de2c8e09352b6e3428d646c1abeb9b30e57e1e84016cad2408ad89bfa23847d6ce4dacd2638115da573a1417c1aabf8810b504b1
6
+ metadata.gz: c251e5f0f1ceb90e2a29964cd73f1ba9fea345512a839c0f61d39bcefa78bd522101cc47c843c0b8707dea95b65bcc9ccb0745f44343e294c4823b056af4b753
7
+ data.tar.gz: 332ec18880beaa38605ca0c362cf2a5290d315a7a869c0592f12dc23074af4574bb2e8f5b64509714d0cb15afe588c5ff8a81281006457769d1f6dc6c55cf4bc
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Octopress::Deploy
1
+ # Octopress Deploy
2
2
 
3
- This gem will contain the default deployment commands for Octopress.
3
+ Deployment tools for Octopress and Jekyll blogs.
4
4
 
5
5
  ## Installation
6
6
 
@@ -20,7 +20,9 @@ Or install it yourself as:
20
20
 
21
21
  This is a generic git deployment system, it should work for GitHub, Heroku and other similar hosts.
22
22
 
23
- #### 1. Add a `_deploy.yml` configuration file to your project root.
23
+ #### 1. Add a configuration file
24
+
25
+ Create a file named `_deploy.yml` in your project root.
24
26
 
25
27
  For GitHub user pages, the url should be something like: `git@github.com:username.github.io` and the branch should be master.
26
28
  For project pages, the url should be the path to the project repo and the branch should be `gh-pages`.
@@ -28,16 +30,18 @@ For project pages, the url should be the path to the project repo and the branch
28
30
  ```yml
29
31
  site: _site
30
32
  git:
31
- url: [git url]
33
+ url:
32
34
  branch: master
33
35
  ```
34
36
 
35
- #### 2. From Ruby run:
37
+ #### 2. From Ruby run
36
38
 
37
39
  ```ruby
38
40
  Octopress::Deploy::Git.new().push
39
41
  ```
40
42
 
43
+ If you do not have a config file set up yet, this will offer to create a default one for you.
44
+
41
45
  ### Options
42
46
 
43
47
  It is recommended that you configure using the `deploy.yml`, but you can also pass configuration as options.
@@ -51,7 +55,6 @@ It is recommended that you configure using the `deploy.yml`, but you can also pa
51
55
  | `deploy_dir` | Directory where deployment files are staged. | .deploy |
52
56
  | `remote` | Name of git remote. | deploy |
53
57
 
54
-
55
58
  ## Contributing
56
59
 
57
60
  1. Fork it
@@ -12,6 +12,8 @@ module Octopress
12
12
  @branch = options[:git_branch] || config['git']['branch']
13
13
  @deploy_dir = options[:deploy_dir] || config['git']['deploy_dir'] || '.deploy'
14
14
  @remote = options[:remote] || config['git']['remote'] || 'deploy'
15
+
16
+ abort "Deploy Failed: You must provide a repository URL before deploying. Check your #{@config_file}.".red if @repo.nil?
15
17
  end
16
18
  end
17
19
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Deploy
3
- VERSION = "1.0.0.alpha.0"
3
+ VERSION = "1.0.0.alpha.1"
4
4
  end
5
5
  end
data/test/test.rb CHANGED
@@ -5,5 +5,5 @@ FileUtils.cd 'deploy_target' do
5
5
  system 'git init --bare'
6
6
  end
7
7
 
8
- Octopress::Deploy::Git.new({url: File.expand_path('deploy_target')}).push
8
+ Octopress::Deploy::Git.new({git_url: File.expand_path('deploy_target')}).push
9
9
  FileUtils.rm_r 'deploy_target'
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.0.0.alpha.0
4
+ version: 1.0.0.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis