Sha256: a02ce8caa3977035c026c9fcf7030e6a0a79e5e075874310f5f39aa49bcfb2b1

Contents?: true

Size: 475 Bytes

Versions: 15

Compression:

Stored size: 475 Bytes

Contents

module MotherBrain
  module Gear
    class MySQL < Gear::Base
      register_gear :mysql

      # @param [String] sql
      #   the sql to run
      #
      # @option options [Hash] :data_bag
      #   specify the data bag, item, and location inside the item to find the MySQL credentials
      #
      # @return [MB::Gear::MySQL::Action]
      def action(sql, options)
        MySQL::Action.new(sql, options)
      end
    end

    require_relative 'mysql/action'
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
motherbrain-1.5.0 lib/mb/gears/mysql.rb
motherbrain-1.4.0 lib/mb/gears/mysql.rb
motherbrain-1.3.0 lib/mb/gears/mysql.rb
motherbrain-1.2.1 lib/mb/gears/mysql.rb
motherbrain-1.2.0 lib/mb/gears/mysql.rb
motherbrain-1.1.3 lib/mb/gears/mysql.rb
motherbrain-1.1.2 lib/mb/gears/mysql.rb
motherbrain-1.1.1 lib/mb/gears/mysql.rb
motherbrain-1.1.0 lib/mb/gears/mysql.rb
motherbrain-1.0.0 lib/mb/gears/mysql.rb
motherbrain-0.14.5 lib/mb/gears/mysql.rb
motherbrain-0.14.4 lib/mb/gears/mysql.rb
motherbrain-0.14.3 lib/mb/gears/mysql.rb
motherbrain-0.14.2 lib/mb/gears/mysql.rb
motherbrain-0.13.1 lib/mb/gears/mysql.rb