Class: Spire::Commands::Console

Inherits:
Object
  • Object
show all
Includes:
Mixins::Authenticate, Mixins::Help
Defined in:
lib/spire/commands/console.rb

Overview

This is the spire command

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Mixins::Help

included

Methods included from Mixins::Authenticate

#connect, included

Class Method Details

.run(args) ⇒ Object



19
20
21
# File 'lib/spire/commands/console.rb', line 19

def self.run(args)
  self.new.run(args)
end

Instance Method Details

#run(args) ⇒ Object



23
24
25
26
27
28
# File 'lib/spire/commands/console.rb', line 23

def run(args)
  parse_options(args)
  $spire = connect
  ARGV.clear
  IRB.start
end