Class: IndexShotgun::CLI

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

Instance Method Summary collapse

Instance Method Details

#mysqlObject



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

def mysql
  analyze("mysql2")
end

#oracleObject



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

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

#postgresqlObject



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

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

#sqlite3Object



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

def sqlite3
  analyze("sqlite3")
end

#versionObject



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

def version
  puts IndexShotgun::VERSION
end