Class: GitGuts::Map
- Inherits:
-
Thor::GitGroup
- Object
- Group
- Thor::GitGroup
- GitGuts::Map
- Defined in:
- lib/git_guts/map.rb
Constant Summary
Constants inherited from Thor::GitGroup
Instance Method Summary collapse
Methods inherited from Thor::GitGroup
Instance Method Details
#map ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/git_guts/map.rb', line 7 def map if country.downcase != 'africa' "\nMap for #{ARGV[0]} does not exist\n".red.slow_puts else type = [:full] ? 'fullmap' : 'map' file_path = File.("../../../bin/support/#{country}-#{type}.gif", __FILE__) `open file://#{file_path}` end end |