Class: IndexShotgun::CLI

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

Instance Method Summary collapse

Instance Method Details

#mysql ⇒ Object



16
17
18
# File 'lib/index_shotgun/cli.rb', line 16

def mysql
  analyze("mysql2")
end

#oracle ⇒ Object



29
30
31
# File 'lib/index_shotgun/cli.rb', line 29

def oracle
  analyze("oracle_enhanced", "activerecord-oracle_enhanced-adapter")
end

#postgresql ⇒ Object



42
43
44
# File 'lib/index_shotgun/cli.rb', line 42

def postgresql
  analyze("postgresql", "pg")
end

#sqlite3 ⇒ Object



48
49
50
# File 'lib/index_shotgun/cli.rb', line 48

def sqlite3
  analyze("sqlite3")
end

#version ⇒ Object



53
54
55
# File 'lib/index_shotgun/cli.rb', line 53

def version
  puts IndexShotgun::VERSION
end