1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00
metasploit-framework/plugins/db_mysql.rb
James Lee 267cdee685 report failure instead of success when loading the db_* stubs
git-svn-id: file:///home/svn/framework3/trunk@6481 4d416f70-5f16-0410-b530-b9f4589650da
2009-04-14 03:58:12 +00:00

20 lines
546 B
Ruby

module Msf
class Plugin::DeprecatedStub < Msf::Plugin
def name
"Deprecated_plugin_stub"
end
def initialize(framework, opts)
super
print_error("")
print_error("The functionality previously provided by this plugin has been")
print_error("integrated into the core command set. Use the new 'db_driver'")
print_error("command to use a database driver other than sqlite3 (which")
print_error("is now the default). All of the old commands are the same.")
print_error("")
raise RuntimeError.new("Deprecated plugin")
end
end
end