Class: Mapstatic::CLI
- Inherits:
-
Thor
- Object
- Thor
- Mapstatic::CLI
- 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[.map{|(k,v)| [k.to_sym,v]}] map = Mapstatic::Map.new(params) map.render_map(filename) unless [:dryrun] ap map. end |