serverkit-dotfiles 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1082641be1ea34807a2d31e656c384b98689ca7b
4
- data.tar.gz: 5fb94a1d7df7dcd9684baefd465e91d909b58c52
3
+ metadata.gz: 7582a742d50960fd5087eb4a8bb68241d756095b
4
+ data.tar.gz: bc28197be7f621d9e859d3ac5aa2a029240876ac
5
5
  SHA512:
6
- metadata.gz: c607cc302d9f2403f708ab0c700b3d9d6f6159642c18d43faf55808ce7c7df38e57bfe224abe1ba3c20c790d873c860450da776e3db8909aadadf0db5a4e89cf
7
- data.tar.gz: 3c64e8f02392336189733365173219c9ab15b26e7809b51ba08f2cf7574df8f71eae9036a8b39420979a2cdc35f05145391e356c08592dd2f59ff46b85702772
6
+ metadata.gz: 15a586279b5259cd4054eb8c5865c63ee1eee276b83f06608793ff091cb3bd6aaa892ef4e6aa488ee7b5960c8c09cccde1cb7d69c571711e4ecdd60eb385f000
7
+ data.tar.gz: f8132f2c36c29dabcc2230994b12310cb8329dc5f4c865fd1a5621b27ebcab5c17ed66a75d3ea884cb6976a9e8da4a5f42acb948c0ea46783129b2b2074dc72a
data/README.md CHANGED
@@ -12,7 +12,7 @@ gem "serverkit-dotfiles"
12
12
 
13
13
  ### dotfiles
14
14
 
15
- Make sure all files in a specified directory is symlinked to home.
15
+ Make sure all files in a specified directory are symlinked to home.
16
16
 
17
17
  #### Attributes
18
18
 
@@ -1,5 +1,5 @@
1
1
  module Serverkit
2
2
  module Dotfiles
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -8,7 +8,8 @@ module Serverkit
8
8
 
9
9
  def apply
10
10
  dotfiles.each do |file|
11
- run_command("ln -fs #{::File.join(directory, file)} #{::File.join(ENV["HOME"], file)}")
11
+ run_command("rm -rf #{::File.join(ENV["HOME"], file)}")
12
+ run_command("ln -s #{::File.join(directory, file)} #{::File.join(ENV["HOME"], file)}")
12
13
  end
13
14
  end
14
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverkit-dotfiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun