Permalink
Browse files

The `devkit:ls` siren song was just too strong

  • Loading branch information...
1 parent 0030c71 commit bfdb6f8ad2b59589cad523aba0dc29491f5eb496 @jonforums jonforums committed Apr 30, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 recipes/devkit/devkit.rake
View
@@ -75,17 +75,18 @@ namespace(:devkit) do
exec sh_exe
end
- desc 'List valid DevKit flavors'
+ desc 'List available DevKit flavors'
task :ls do
default = DevKitInstaller::DEFAULT_VERSION
current = ENV['DKVER'] || default
puts "\n=== Available DevKit's ==="
DevKitInstaller::COMPILERS.keys.sort.each do |k|
- str = " #{current.downcase == k.downcase ? '=>' : ' ' }"
- str << " #{k}"
- str << " #{default.downcase == k.downcase ? '[default]' : ''}"
- puts str
+ puts ' %-2s %-17s %s' % [
+ current.downcase == k.downcase ? '=>' : nil,
+ k,
+ default.downcase == k.downcase ? '[default]' : nil
+ ]
end
end
end

0 comments on commit bfdb6f8

Please sign in to comment.