deploydots 0.1 → 0.2
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.
- data/bin/deploydots +5 -3
- metadata +2 -2
data/bin/deploydots
CHANGED
|
@@ -24,17 +24,17 @@ def link old, new
|
|
|
24
24
|
# ask what we should do (replace, replace_all, skip, skip_all, or quit)
|
|
25
25
|
response = nil
|
|
26
26
|
loop do
|
|
27
|
-
puts "#{new} already exists, 1) replace 2) replace all 3) quit"
|
|
27
|
+
puts "#{new} already exists, 1) replace 2) replace all 3) skip 4) quit"
|
|
28
28
|
begin
|
|
29
29
|
response = Integer gets.chomp
|
|
30
30
|
rescue ArgumentError
|
|
31
31
|
puts "not a valid number"
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
if (1..
|
|
34
|
+
if (1..4).member? response
|
|
35
35
|
break
|
|
36
36
|
else
|
|
37
|
-
puts "number not in range of 1..
|
|
37
|
+
puts "number not in range of 1..4"
|
|
38
38
|
redo
|
|
39
39
|
end
|
|
40
40
|
end
|
|
@@ -48,6 +48,8 @@ def link old, new
|
|
|
48
48
|
File.delete new
|
|
49
49
|
File.symlink old, new
|
|
50
50
|
when 3
|
|
51
|
+
return
|
|
52
|
+
when 4
|
|
51
53
|
exit
|
|
52
54
|
end
|
|
53
55
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: deploydots
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.2'
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-02-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Symlinks all your dot files from ~/dotfiles into ~
|
|
15
15
|
email: gostrc@gmail.com
|