rebuild 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea332e288da08eaef1abe29d49429d6bcf26bd62
4
- data.tar.gz: 602cc6aab9d5036b18847e414eb3b71b5bec009e
3
+ metadata.gz: 32d8f3986b2460753c6177e2e6fa880602ae5153
4
+ data.tar.gz: d8d6c24730d5ab5d2165935da69e1d22e6ee918a
5
5
  SHA512:
6
- metadata.gz: c4322054c2a2dd93643903ed19991b62aac791626ba0c90551827740d88b4c50aff0f008fc4852b04a9a56b292acae675dac4b176908368a8646e195b0b429e8
7
- data.tar.gz: a334066a5217c4e12ca29e0ed01c0826cc809d5f5d513b44166d8fc2656e9f280c1b3c16dd9511e85d482c4d9d5e4ef371a1d86be91639514ebe0e4d6ae0056a
6
+ metadata.gz: a0acc0af2387ef5191506e89c6f26c06597684d23ab481fc9e1eaabaf058d11b8347548b91194bdc124ff6bb614c96f7c9cadb66772f3730bbc635039c1e8158
7
+ data.tar.gz: 7aa663821dd74082d6a214c9740c807565a9f93b26c6fa29516a1841be126907109b27962534f0e0387483989bed55dce0b8e361ec1430090ad2f5d891817406
data/README.md CHANGED
@@ -14,8 +14,15 @@ $ sudo gem install rebuild
14
14
  $ rebuild k0kubun/dotfiles
15
15
  ```
16
16
 
17
- The archive of [repository](https://github.com/k0kubun/dotfiles) is unzipped to `/tmp/dotfiles-master`.
18
- Then executes all of `/tmp/dotfiles-master/rebuild/*.sh`.
17
+ The archive of [repository](https://github.com/k0kubun/dotfiles) is unzipped to `/tmp/k0kubun/dotfiles`.
18
+ Then executes all of `/tmp/k0kubun/dotfiles/*.sh`.
19
+
20
+ ## TODO
21
+
22
+ - revision lock
23
+ - clone directory change option
24
+ - support script directory to put scripts
25
+ - automatic xcode-select
19
26
 
20
27
  ## License
21
28
 
@@ -23,6 +23,11 @@ module Rebuild
23
23
  private
24
24
 
25
25
  def clone_archive
26
+ if File.exists?(repo_path)
27
+ puts "Directory already exists. Clone skipped."
28
+ return
29
+ end
30
+
26
31
  print "Cloning into #{repo_path}..."
27
32
  download_archive
28
33
  unzip_archive
@@ -1,3 +1,3 @@
1
1
  module Rebuild
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
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.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun