Class: GitGuts::Map

Inherits:
Thor::GitGroup show all
Defined in:
lib/git_guts/map.rb

Constant Summary

Constants inherited from Thor::GitGroup

Thor::GitGroup::BASENAME

Instance Method Summary collapse

Methods inherited from Thor::GitGroup

basename, namespace

Instance Method Details

#mapObject



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 = options[:full] ? 'fullmap' : 'map'
    file_path = File.expand_path("../../../bin/support/#{country}-#{type}.gif", __FILE__)
    `open file://#{file_path}`
  end
end