Class: Geostats::Commands::Base

Inherits:
Object
  • Object
show all
Includes:
Term::ANSIColor
Defined in:
lib/geostats/commands/base.rb

Direct Known Subclasses

Console, Generate, Help, Init, Migrate, Push, Set, Update

Instance Method Summary collapse

Constructor Details

#initialize(args = []) ⇒ Base

Returns a new instance of Base.



17
18
19
# File 'lib/geostats/commands/base.rb', line 17

def initialize(args=[])
  @args = args
end

Instance Method Details

#invokeObject



21
22
23
24
# File 'lib/geostats/commands/base.rb', line 21

def invoke
  parse_args
  before; run; after
end