Class: MotherBrain::Gear::MySQL

Inherits:
Base
  • Object
show all
Defined in:
lib/mb/gears/mysql.rb,
lib/mb/gears/mysql/action.rb

Defined Under Namespace

Classes: Action

Instance Method Summary collapse

Methods inherited from Base

register_gear, #run

Instance Method Details

#action(sql, options) ⇒ MB::Gear::MySQL::Action

Parameters:

  • sql (String)

    the sql to run

  • options (Hash)

    a customizable set of options

Options Hash (options):

  • :data_bag (Hash)

    specify the data bag, item, and location inside the item to find the MySQL credentials

Returns:

  • (MB::Gear::MySQL::Action)


13
14
15
# File 'lib/mb/gears/mysql.rb', line 13

def action(sql, options)
  MySQL::Action.new(sql, options)
end