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.
- checksums.yaml +5 -5
- data/bin/kyrbeis +10 -11
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 6f156b76a549c83b897a8431b1c83f6294c71073f9cb1367ae01defdb6eced4b
|
|
4
|
+
data.tar.gz: 281be40ad0a73ce393826894df38ca1d88ba3487e7c24e4441cec9699a3eef2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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 "
|
|
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.
|
|
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.
|
|
41
|
+
rubygems_version: 2.7.6.2
|
|
42
42
|
signing_key:
|
|
43
43
|
specification_version: 4
|
|
44
44
|
summary: dotfiles management
|