kyrbeis 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/bin/kyrbeis +19 -0
  3. metadata +45 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a111f0783ee191afe58c29b63bdae107a9bd0edc
4
+ data.tar.gz: b693180a390968988c44a9cbf8864ebee76b8dd5
5
+ SHA512:
6
+ metadata.gz: e04ad1cd4653cf4c556bb4fdb91ebbf26a138e46defef82fcdb507c242f957808852608541b7910f9073ae80aabce6654e55f4a86514b364622d7d5527036f6f
7
+ data.tar.gz: b5f1b0d7988296b5f5b7a672e541bcbf1fd5caf268c38c32efe2ae367cfb45b1a059591ac6b2ee2095281868314052b952fe404f514331b66a829383d97f3f48
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+ require 'fileutils'
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
13
+ FileUtils.mkdir_p File.join(File.dirname(destination))
14
+ File.symlink File.join(repo, path), destination
15
+ puts "-> linked #{destination}"
16
+ end
17
+ end
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kyrbeis
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Olivier Abdesselam
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-08-04 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Allows to manage your dotfiles in a centralized fashion
14
+ email:
15
+ executables:
16
+ - kyrbeis
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - bin/kyrbeis
21
+ homepage: http://rubygems.org/gems/kyrbeis
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubyforge_project:
41
+ rubygems_version: 2.0.14.1
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: dotfiles management
45
+ test_files: []