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 +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +8 -6
- data/lib/octopress-deploy/commands.rb +7 -1
- 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: d75396b3d9c08fa3d3ca51c034f9eeba5eb51342
|
4
|
+
data.tar.gz: d8b79775a8f2371f956cbea7d0599a29c89824b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17cf33beeb6801c573fd3c2416ca26f6eca4ee18dddbf358c69b99ab2097f2a4b1e0ffaecad4adb1ac9552d23a084d5de2cfadb15c64a5716af21514fd404aa0
|
7
|
+
data.tar.gz: 8e3f62f866bd690c4f17aea8b849386ad42dab791faf7683746017bcb19d15e09c0072459fce5ff5e514ede4d52039661bc3d1f21b71ba889dd7d4f9e7b14af3
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -15,18 +15,20 @@ $ gem install octopress
|
|
15
15
|
|
16
16
|
## Usage
|
17
17
|
|
18
|
-
| Subcommand
|
19
|
-
|
20
|
-
| `init <METHOD
|
21
|
-
| `pull <DIR>`
|
22
|
-
| `add-bucket <NAME>`
|
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
|
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']
|
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
|
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.
|
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-
|
11
|
+
date: 2015-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorator
|