rakins 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rakin.rb +11 -10
- metadata +1 -1
data/lib/rakin.rb
CHANGED
@@ -26,19 +26,20 @@ class Rakin
|
|
26
26
|
first_arg = ARGV[0]
|
27
27
|
second_arg = ARGV[1]
|
28
28
|
|
29
|
-
|
29
|
+
case first_arg
|
30
|
+
when nil
|
31
|
+
puts Rakin.talks_back
|
32
|
+
when 'install'
|
30
33
|
puts Rakin.speaks "INSTALLIN' #{second_arg}, YO."
|
31
|
-
|
32
|
-
|
34
|
+
system "gem", "install", second_arg
|
35
|
+
when 'help'
|
33
36
|
puts "rakins install <gem> will install a gem, rakins <command> will bundle exec the command."
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
+
when 'origin'
|
38
|
+
system "open", "http://www.youtube.com/watch?v=QHQ7bt5LBj8"
|
39
|
+
else
|
37
40
|
puts Rakin.speaks "EXECIN' #{first_arg}, YO."
|
38
|
-
|
39
|
-
elsif first_arg.nil?
|
40
|
-
puts Rakin.talks_back
|
41
|
+
system "bundle", "exec", *ARGV
|
41
42
|
end
|
42
43
|
end
|
43
44
|
|
44
|
-
end
|
45
|
+
end
|