Class: Mapstatic::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/mapstatic/cli.rb

Instance Method Summary collapse

Instance Method Details

#map(filename) ⇒ Object



43
44
45
46
47
48
49
50
# File 'lib/mapstatic/cli.rb', line 43

def map(filename)
  params = Hash[options.map{|(k,v)| [k.to_sym,v]}]

  map = Mapstatic::Map.new(params)

  map.render_map(filename) unless options[:dryrun]
  ap map.
end