kyrbeis 0.0.0 → 0.0.1

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.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/bin/kyrbeis +10 -11
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a111f0783ee191afe58c29b63bdae107a9bd0edc
4
- data.tar.gz: b693180a390968988c44a9cbf8864ebee76b8dd5
2
+ SHA256:
3
+ metadata.gz: 6f156b76a549c83b897a8431b1c83f6294c71073f9cb1367ae01defdb6eced4b
4
+ data.tar.gz: 281be40ad0a73ce393826894df38ca1d88ba3487e7c24e4441cec9699a3eef2f
5
5
  SHA512:
6
- metadata.gz: e04ad1cd4653cf4c556bb4fdb91ebbf26a138e46defef82fcdb507c242f957808852608541b7910f9073ae80aabce6654e55f4a86514b364622d7d5527036f6f
7
- data.tar.gz: b5f1b0d7988296b5f5b7a672e541bcbf1fd5caf268c38c32efe2ae367cfb45b1a059591ac6b2ee2095281868314052b952fe404f514331b66a829383d97f3f48
6
+ metadata.gz: 4a592073348cd3afbcfb0e405ff0c82c8c33079429a94c4bcb4ee42abd66c62a9a030328cfe55462f6daecacbbc6c396087744f4f92d23c137f84cdccc571c3c
7
+ data.tar.gz: 6d9ff21a543e615efd430590ad646c9b7cb5845b9aa2f1733ba36d221b8c0e1042c6c9045afe11686fe50385f00a0a11c545866ce1d14660e94f83cf2901a5c5
data/bin/kyrbeis CHANGED
@@ -1,19 +1,18 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'fileutils'
3
3
  repo="#{ENV['HOME']}/dotfiles"
4
- case ARGV[0]
5
- when "apply"
6
- Dir.chdir(repo) do
7
- Dir.glob("**/*").select { |f| File.file? f }.each do |path|
8
- dotted_path = path.gsub "__", "."
9
- destination = File.join(ENV['HOME'], dotted_path)
10
- if File.exists? destination
11
- puts " #{destination} already exists"
12
- else
4
+ Dir.chdir(repo) do
5
+ Dir.glob("**/*").select { |f| File.file? f }.each do |path|
6
+ dotted_path = path.gsub "__", "."
7
+ destination = File.join(ENV['HOME'], dotted_path)
8
+ if File.exists? destination
9
+ if not File.symlink? destination
10
+ puts "WARNING #{destination} already exists and is not a symlink"
11
+ end
12
+ else
13
13
  FileUtils.mkdir_p File.join(File.dirname(destination))
14
14
  File.symlink File.join(repo, path), destination
15
- puts "-> linked #{destination}"
16
- end
15
+ puts "INFO linked #{destination}"
17
16
  end
18
17
  end
19
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kyrbeis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Abdesselam
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  version: '0'
39
39
  requirements: []
40
40
  rubyforge_project:
41
- rubygems_version: 2.0.14.1
41
+ rubygems_version: 2.7.6.2
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: dotfiles management