Sha256: 39607d36852347726b962d298ffefed80806a65de8bc52779f3c5d172e8aa625

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

module Fulmar
  module Plugin
    module MariaDB
      module DslHelper
        # Return a mariadb object to query the database or get dumps
        def mariadb
          shell = config[:hostname] && config[:hostname] != 'localhost' ? remote_shell : local_shell
          storage['mariadb'] ||= Fulmar::Plugin::MariaDB::Database.new config, shell, local_shell
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fulmar-plugin-mariadb-0.3.0 lib/fulmar/plugin/mariadb/dsl_helper.rb
fulmar-plugin-mariadb-0.2.0 lib/fulmar/plugin/mariadb/dsl_helper.rb