Class: Geostats::Commands::Console
- Inherits:
-
Base
- Object
- Base
- Geostats::Commands::Console
show all
- Defined in:
- lib/geostats/commands/console.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #invoke
Instance Method Details
#parse_args ⇒ Object
8
9
10
|
# File 'lib/geostats/commands/console.rb', line 8
def parse_args
raise UsageError unless @args.length.zero?
end
|
#run ⇒ Object
12
13
14
|
# File 'lib/geostats/commands/console.rb', line 12
def run
exec "irb -I lib -r geostats -r geostats/console"
end
|
#usage ⇒ Object
4
5
6
|
# File 'lib/geostats/commands/console.rb', line 4
def usage
STDERR.puts "Usage: geostats console"
end
|