git-feats 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +5 -0
- data/lib/git-feats/runner.rb +23 -5
- data/lib/git-feats/version.rb +1 -1
- metadata +1 -1
data/HISTORY.md
CHANGED
data/lib/git-feats/runner.rb
CHANGED
@@ -17,15 +17,33 @@ module GitFeats
|
|
17
17
|
|
18
18
|
# Execute git command
|
19
19
|
def run
|
20
|
-
|
20
|
+
|
21
|
+
# Check for git-feats commands
|
21
22
|
case @args[0]
|
22
23
|
when "update-feats"
|
23
|
-
|
24
|
-
|
25
|
-
|
24
|
+
update_feats
|
25
|
+
when "version" || "--version"
|
26
|
+
version
|
26
27
|
else
|
27
|
-
|
28
|
+
exec_args
|
28
29
|
end
|
29
30
|
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
def update_feats
|
35
|
+
if Config.exists?
|
36
|
+
API.upload_feats
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def version
|
41
|
+
puts "git-feats version #{GitFeats::VERSION}"
|
42
|
+
exec_args
|
43
|
+
end
|
44
|
+
|
45
|
+
def exec_args
|
46
|
+
exec(*@args.to_exec)
|
47
|
+
end
|
30
48
|
end
|
31
49
|
end
|
data/lib/git-feats/version.rb
CHANGED