marketplace-kit 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -24
- data/lib/marketplace_kit/command_dispatcher.rb +1 -1
- data/lib/marketplace_kit/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: 9c1f450f4ce123a752d6b9f78aece3be56c157ef
|
4
|
+
data.tar.gz: da019af5fae620dcba53223e61ff23d6873ccd95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8aeef32d27aef3d949569bb74948bd7eb2b689ff7245460e64cf04b0d66df27ae88b7c27ac8de7eaabaaf5925c126e8da4188fc294ba807cdfbbdfa5e80f7483
|
7
|
+
data.tar.gz: ac69d0d0a5ca5a178982b1ed80939dcac833bb4b0750169e23228fcc1ef08abc4b3dc5d1248aea9f25c53032fb4b6615763945bcb66928e8dc10f4c6a713e14c
|
data/README.md
CHANGED
@@ -11,8 +11,8 @@ Install it yourself as:
|
|
11
11
|
## Configuration
|
12
12
|
|
13
13
|
1. Go to marketplace folder you are working on
|
14
|
-
2. Ensure marketplace_builder directory exists
|
15
|
-
3. Create marketplace_builder/.builder file
|
14
|
+
2. Ensure `marketplace_builder` directory exists
|
15
|
+
3. Create `marketplace_builder/.builder` file with endpoint names and their urls
|
16
16
|
```
|
17
17
|
{
|
18
18
|
"localhost": {
|
@@ -27,32 +27,23 @@ Install it yourself as:
|
|
27
27
|
}
|
28
28
|
```
|
29
29
|
|
30
|
-
##
|
31
|
-
|
30
|
+
## Usage
|
31
|
+
`marketplace-kit <command> [flags]`
|
32
32
|
|
33
|
-
|
34
|
-
marketplace-kit
|
35
|
-
```
|
36
|
-
Pulls files from database and saves them in the filesystem
|
33
|
+
Example:
|
34
|
+
`marketplace-kit deploy -f -e staging`
|
37
35
|
|
38
|
-
|
39
|
-
marketplace-
|
40
|
-
```
|
41
|
-
Updates database using the filesystem as a source
|
36
|
+
## Available commands
|
37
|
+
All commands should be run in the marketplace directory (ie. `marketplace-nearme/`)
|
42
38
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
39
|
+
| Command | Description |
|
40
|
+
| ----------------- | ------------- |
|
41
|
+
| `pull` | Pulls files from database and saves them in the filesystem |
|
42
|
+
| `deploy` | Updates database using the filesystem as a source |
|
43
|
+
| `deploy -e staging` | Deploys to staging environment (-e option is available for all commands) |
|
44
|
+
| `deploy -f` | Updates database using the filesystem as a source with force mode enabled (override all files, don't skip not changed) |
|
45
|
+
| `sync` | Watches filesystem and updates the database on every change |
|
47
46
|
|
48
|
-
```
|
49
|
-
marketplace-kit deploy -f
|
50
|
-
```
|
51
|
-
Updates database using the filesystem as a source with force mode enabled (override all files, don't skip not changed)
|
52
|
-
```
|
53
|
-
marketplace-kit sync
|
54
|
-
```
|
55
|
-
Enables sync mode - saves changes made in the filesystem to the database
|
56
47
|
|
57
48
|
## Contributing
|
58
49
|
|
@@ -23,7 +23,7 @@ module MarketplaceKit
|
|
23
23
|
when 'sync' then Commands::Sync
|
24
24
|
when 'deploy' then Commands::Deploy
|
25
25
|
when 'pull' then Commands::Pull
|
26
|
-
else raise Errors::MarketplaceError.new('Usage:
|
26
|
+
else raise Errors::MarketplaceError.new('Usage: marketplace-kit sync | deploy | pull')
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marketplace-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Janeczek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|