checkout 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/checkout/runner.rb +0 -12
- data/lib/checkout/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3c87ea6b9bb456e1c23566bfc7d96a60aa9eeb7e91afddb1ab0d0c4c3fff580
|
4
|
+
data.tar.gz: b951e528a996d723877fca73999ffde0b59c09284bab9e488c73e4fb558e94a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd6a7b9c91d7c99907b1973bf7a281f294ab8923a67bf1e1a012367d1a143a5dadbf750e256cfea4b459c9e12f772d70282a5970efe999da600478071e08b050
|
7
|
+
data.tar.gz: 2a3a672ad7d3ef335d44054c744c9db45cd669675f553e82b35f07f1738284742f83ee1c5828265db82f2a0aa6a1cf300e7500720ca6e455daf62ec10924c7cd
|
data/lib/checkout/runner.rb
CHANGED
@@ -6,21 +6,16 @@ module Checkout
|
|
6
6
|
|
7
7
|
def initialize(max)
|
8
8
|
if max.nil?
|
9
|
-
puts "max is 10"
|
10
9
|
@max ||= 10
|
11
10
|
else
|
12
|
-
puts "max is #{max}"
|
13
11
|
@max ||= max.to_i
|
14
12
|
end
|
15
13
|
run!
|
16
14
|
end
|
17
15
|
|
18
16
|
def run!
|
19
|
-
puts "asking"
|
20
17
|
ask_for_selection
|
21
|
-
puts 'mapping selection'
|
22
18
|
map_selection_to_branch
|
23
|
-
puts 'checking out'
|
24
19
|
checkout
|
25
20
|
end
|
26
21
|
|
@@ -34,10 +29,7 @@ module Checkout
|
|
34
29
|
end
|
35
30
|
|
36
31
|
def map_selection_to_branch
|
37
|
-
puts "selection is #{selection}"
|
38
32
|
@branch ||= branch_choice_object[selection.to_i]
|
39
|
-
puts "branch is #{@branch}"
|
40
|
-
puts "branch choice object is #{branch_choice_object}"
|
41
33
|
end
|
42
34
|
|
43
35
|
def branches
|
@@ -53,10 +45,6 @@ module Checkout
|
|
53
45
|
|
54
46
|
def display_branches
|
55
47
|
branch_choice_object.each do |k, v|
|
56
|
-
puts "k is #{k}"
|
57
|
-
puts "v is #{v}"
|
58
|
-
puts "k dot size is #{k.to_s.size}"
|
59
|
-
puts "branch is #{branch}"
|
60
48
|
dashes = "-" * (5 - k.to_s.size)
|
61
49
|
puts "#{k.to_s.colorize(:yellow)} #{dashes} #{v.colorize(:green)}"
|
62
50
|
end
|
data/lib/checkout/version.rb
CHANGED