module Fulmar::Plugin::MariaDB::DslHelper

Public Instance Methods

mariadb() click to toggle source

Return a mariadb object to query the database or get dumps

# File lib/fulmar/plugin/mariadb/dsl_helper.rb, line 6
def mariadb
  shell = config[:hostname] && config[:hostname] != 'localhost' ? remote_shell : local_shell
  storage['mariadb'] ||= Fulmar::Plugin::MariaDB::Database.new config, shell, local_shell
end