Skip to content
Browse files

display message if ruby isn't installed

  • Loading branch information...
1 parent 3e737eb commit 591150065feb317f2462200c25ac09a1e1c3e959 @vertiginous committed Feb 26, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/pik/commands/help_command.rb
View
8 lib/pik/commands/help_command.rb
@@ -7,6 +7,14 @@ class Help < Command
def execute
puts options if @args.empty? && !version
+ if ruby = Rubies[@args.first]
+ msg = "#{ruby[:name]} is not installed.\n\nRun:\n\n"
+ msg << " pik install #{ruby[:pattern]}\n\n"
+ msg << "to install it"
+ Log.error msg
+ exit 1
+ end
+
@args.each do |a|
@msg = case a.to_sym
when *Commands.list

0 comments on commit 5911500

Please sign in to comment.
Something went wrong with that request. Please try again.