octopress-deploy 1.0.3 → 1.0.4

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: b30fec5fea505bb7a246e1d0bc5e0c739343b504
4
- data.tar.gz: 61f1c39b6c169843e4fe19c1451247ad8af88709
3
+ metadata.gz: d75396b3d9c08fa3d3ca51c034f9eeba5eb51342
4
+ data.tar.gz: d8b79775a8f2371f956cbea7d0599a29c89824b5
5
5
  SHA512:
6
- metadata.gz: 528045680665befb6071813aff95d2b531da8167f1fee9799a3422c3d52befacbc94343b91c8a651a57415a78a40d833fd7dbb2dc3eb45064f3967f2609959a8
7
- data.tar.gz: d659d156bac37ae764b2dfa9e7191d717f0d6aa2e49f6db08e494bad4bd582ed57007006feaa3cd90dab09d261f18e50faf009f42fdff736c1298744491e72f4
6
+ metadata.gz: 17cf33beeb6801c573fd3c2416ca26f6eca4ee18dddbf358c69b99ab2097f2a4b1e0ffaecad4adb1ac9552d23a084d5de2cfadb15c64a5716af21514fd404aa0
7
+ data.tar.gz: 8e3f62f866bd690c4f17aea8b849386ad42dab791faf7683746017bcb19d15e09c0072459fce5ff5e514ede4d52039661bc3d1f21b71ba889dd7d4f9e7b14af3
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- # Octopress Deploy Changelog
1
+ # Changelog
2
+
3
+ ### 1.0.4 - 2015-01-17
4
+
5
+ - Improved help messaging on `deploy init git`.
2
6
 
3
7
  ### 1.0.3 - 2015-01-04
4
8
 
data/README.md CHANGED
@@ -15,18 +15,20 @@ $ gem install octopress
15
15
 
16
16
  ## Usage
17
17
 
18
- | Subcommand | Description |
19
- |:--------------------|:-------------------------------------------------------------------|
20
- | `init <METHOD>` | Generate a config file for the deployment method. (git, s3, rsync) |
21
- | `pull <DIR>` | Pull down your site into a local directory. |
22
- | `add-bucket <NAME>` | (S3 only) Add a bucket using your configured S3 credentials. |
18
+ | Subcommand | Description |
19
+ |:--------------------------|:-------------------------------------------------------------------|
20
+ | `init <METHOD> [options]` | Generate a config file for the deployment method. (git, s3, rsync) |
21
+ | `pull <DIR>` | Pull down your site into a local directory. |
22
+ | `add-bucket <NAME>` | (S3 only) Add a bucket using your configured S3 credentials. |
23
23
 
24
24
  ## Set up
25
25
 
26
26
  First set up a configuration file for your deployment method.
27
27
 
28
28
  ```
29
- $ octopress deploy init git # or rsync, s3
29
+ $ octopress deploy init git --url git@github.com:user/project
30
+ $ octopress deploy init s3
31
+ $ octopress deploy init rsync
30
32
  ```
31
33
 
32
34
  This will generate a `_deploy.yml` file in your current
@@ -55,7 +55,13 @@ module Octopress
55
55
 
56
56
  c.action do |args, options|
57
57
  options['method'] = 'git'
58
- options['git_url'].sub!(/^\./, Dir.pwd)
58
+ if options['git_url']
59
+ options['git_url'].sub!(/^\./, Dir.pwd)
60
+ else
61
+ $stderr.puts "git url missing"
62
+ puts c # print the help
63
+ abort
64
+ end
59
65
  Octopress::Deploy.init_config(options)
60
66
  end
61
67
  end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Deploy
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  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.0.3
4
+ version: 1.0.4
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-01-05 00:00:00.000000000 Z
11
+ date: 2015-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorator