rebuild 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/rebuild/cli.rb +4 -0
- data/lib/rebuild/version.rb +1 -1
- data/rebuild.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4136940bdf93abef19c6a1e0bebfcf468dab97b
|
4
|
+
data.tar.gz: f5ba90fa461f4f4572eeb06b085ad49f9dc007d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf4c17bc2bfa90ce5a946a46aaeab89a969e459f4d758b7e1f02a8b5bac855c29e6c0b76005c808be21b4da482da46a55005184fa0fd7eef316892b9b0d72aae
|
7
|
+
data.tar.gz: 5cdc34c285e344cdddee657ef7ddbc5b37ec76d2633be915bb5e40bd65fc73af3e73e390b3d4e78c8c3b25dedfa526693c107a974833702a84abddd50345e740
|
data/README.md
CHANGED
@@ -31,7 +31,7 @@ Just typing the command allows you to reproduce your development environment.
|
|
31
31
|
|
32
32
|
### Sync multiple environments
|
33
33
|
|
34
|
-
![](http://pic.k0kubun.com/
|
34
|
+
![](http://pic.k0kubun.com/1B8yBClo0bg4W7Q.gif)
|
35
35
|
|
36
36
|
```bash
|
37
37
|
# force update repository by `-f`
|
@@ -63,6 +63,8 @@ EOS
|
|
63
63
|
|
64
64
|
## Config
|
65
65
|
|
66
|
+
![](http://pic.k0kubun.com/wsrFmSZhBOug1Yj.gif)
|
67
|
+
|
66
68
|
You can skip choosing option by ~/.gitconfig
|
67
69
|
|
68
70
|
```aconf
|
data/lib/rebuild/cli.rb
CHANGED
@@ -5,6 +5,7 @@ require 'unindent'
|
|
5
5
|
module Rebuild
|
6
6
|
class CLI
|
7
7
|
DEFAULT_OPTIONS = {
|
8
|
+
help: false,
|
8
9
|
update: false,
|
9
10
|
version: false,
|
10
11
|
}
|
@@ -16,12 +17,14 @@ module Rebuild
|
|
16
17
|
options = DEFAULT_OPTIONS.merge(@gitconfig.rebuild_config)
|
17
18
|
|
18
19
|
opt = OptionParser.new
|
20
|
+
opt.on('-h', '--help') { |v| options[:help] = true }
|
19
21
|
opt.on('-v', '--version') { |v| options[:version] = true }
|
20
22
|
opt.on('-f', '--force-update') { |v| options[:update] = true }
|
21
23
|
opt.on('-d', '--directory=VAL') { |v| options[:directory] = v }
|
22
24
|
opt.on('-s', '--scriptdir=VAL') { |v| options[:scriptdir] = v }
|
23
25
|
|
24
26
|
args = opt.parse!(ARGV)
|
27
|
+
return show_usage if options[:help]
|
25
28
|
return print_version if options[:version]
|
26
29
|
|
27
30
|
CommandLineTools.install unless CommandLineTools.installed?
|
@@ -89,6 +92,7 @@ module Rebuild
|
|
89
92
|
rebuild config add rebuild config template to ~/.gitconfig
|
90
93
|
|
91
94
|
Options:
|
95
|
+
-h, [--help] Show this
|
92
96
|
-v, [--version] Print version
|
93
97
|
-f, [--force-update] By default, git pull is not executed
|
94
98
|
-d, [--directory=/path/to/clone] Default: /tmp/USER/PROJECT
|
data/lib/rebuild/version.rb
CHANGED
data/rebuild.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "unindent", "~> 1.0"
|
22
|
-
spec.add_runtime_dependency "parseconfig", "~> 1.0
|
22
|
+
spec.add_runtime_dependency "parseconfig", "~> 1.0"
|
23
23
|
spec.add_development_dependency "pry", "~> 0.10"
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.7"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rebuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Kokubun
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0
|
33
|
+
version: '1.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|