caravan 0.4.0.beta → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +16 -0
- data/README.md +30 -3
- data/lib/caravan/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3056289441f97341f8e54ae2e285dbf7720e0d64
|
4
|
+
data.tar.gz: a65424290ac39ba323ba1608366cd206f2d68c32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6879a9ce50b92bc462c22f02133416d892c962c9c3d1aed742c48adf28c57e8794aa169ec1b82a6e11266f7ef1e4dfa5200b6af09f50996ab3b7d0156d08dfe
|
7
|
+
data.tar.gz: 495b3c418566110b17ffecdfa8052a29e1c035a3949da42117e5feb2d7d7c3376b8d0bd426ca34bc2a952b191025e4447335c1474d033361a9088c534083ce7d
|
data/.codeclimate.yml
ADDED
data/README.md
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
[![Code Climate](https://codeclimate.com/github/crispgm/caravan/badges/gpa.svg)](https://codeclimate.com/github/crispgm/caravan)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/crispgm/caravan/badges/coverage.svg)](https://codeclimate.com/github/crispgm/caravan/coverage)
|
7
7
|
|
8
|
-
Simple watcher and deployer.
|
8
|
+
Simple project files watcher and deployer.
|
9
9
|
|
10
|
-
The
|
10
|
+
The scenario is when we are developing in your local workspace and the program only runs in specific runtime environment, we have to setup by ourself to make the program run and debug on runtime folders, or remote machines. Caravan is the automation tool designed for solving such kind of problems by watching the file changes, and deploy them automatically to its destination.
|
11
11
|
|
12
12
|
## Installation
|
13
13
|
|
@@ -19,6 +19,13 @@ $ gem install caravan
|
|
19
19
|
|
20
20
|
```
|
21
21
|
$ caravan --help
|
22
|
+
|
23
|
+
-s, --source SOURCE_PATH Source path
|
24
|
+
-d, --dest DEST_PATH Destination path
|
25
|
+
-m, --mode DEPLOY_MODE Deploy mode
|
26
|
+
-i, --ignore IGNORE_FILES Ignore files
|
27
|
+
-b, --debug Debug mode
|
28
|
+
--version Show version
|
22
29
|
```
|
23
30
|
|
24
31
|
Example:
|
@@ -27,13 +34,33 @@ Example:
|
|
27
34
|
$ caravan -s /path/to/project/. -d /path/to/deploy -m shell
|
28
35
|
```
|
29
36
|
|
37
|
+
## Configuration
|
38
|
+
|
39
|
+
Generate default configuration:
|
40
|
+
|
41
|
+
```
|
42
|
+
$ cd /path/to/src
|
43
|
+
$ caravan init
|
44
|
+
```
|
45
|
+
|
46
|
+
A `caravan.yml` will be generated as `/path/to/src/caravan.yml`. You may specify any options in command arguments except source path.
|
47
|
+
|
48
|
+
```
|
49
|
+
debug: false
|
50
|
+
deploy_mode: rsync_local
|
51
|
+
incremental: true
|
52
|
+
exclude:
|
53
|
+
- ".git"
|
54
|
+
- ".svn"
|
55
|
+
```
|
56
|
+
|
30
57
|
## Plan
|
31
58
|
|
32
59
|
- [x] Basic watching and deploying
|
33
60
|
- [x] Exclude watching unwanted files
|
34
61
|
- [x] `caravan.yml` for project-specialized configuration
|
35
62
|
- [ ] Watch and deploy only the changed file instead of the whole folder
|
36
|
-
- [ ]
|
63
|
+
- [ ] Callbacks for deployment
|
37
64
|
- [ ] Multiple deployment configurations
|
38
65
|
|
39
66
|
## LICENSE
|
data/lib/caravan/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caravan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.0
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Zhang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: listen
|
@@ -116,6 +116,7 @@ executables:
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
+
- ".codeclimate.yml"
|
119
120
|
- ".gitignore"
|
120
121
|
- ".travis.yml"
|
121
122
|
- CODE_OF_CONDUCT.md
|
@@ -151,9 +152,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
152
|
version: '0'
|
152
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
154
|
requirements:
|
154
|
-
- - "
|
155
|
+
- - ">="
|
155
156
|
- !ruby/object:Gem::Version
|
156
|
-
version:
|
157
|
+
version: '0'
|
157
158
|
requirements: []
|
158
159
|
rubyforge_project:
|
159
160
|
rubygems_version: 2.6.11
|