Sha256: a9c14bd4ece5c00518d84405627b9bf61644a36bfd0c6f8b7b27d4e9f3f9281b

Contents?: true

Size: 342 Bytes

Versions: 10

Compression:

Stored size: 342 Bytes

Contents

begin
  require 'mysql'
rescue LoadError
  Chef::Log.info("Missing gem 'mysql'")
end

module Opscode
  module Mysql
    module Database
      def db
        @db ||= ::Mysql.new new_resource.host, new_resource.username, new_resource.password
      end
      def close
        @db.close rescue nil
        @db = nil
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
ciborg-3.0.0 chef/travis-cookbooks/ci_environment/mysql/libraries/database.rb
lobot-2.1.0 chef/travis-cookbooks/ci_environment/mysql/libraries/database.rb
lobot-2.0.0pre chef/travis-cookbooks/ci_environment/mysql/libraries/database.rb
elzar-0.2.0 chef/cookbooks/mysql/libraries/database.rb
lobot-1.0.pre chef/travis-cookbooks/ci_environment/mysql/libraries/database.rb
elzar-0.1.2 chef/cookbooks/mysql/libraries/database.rb
elzar-0.1.1 chef/cookbooks/mysql/libraries/database.rb
elzar-0.1.0 chef/cookbooks/mysql/libraries/database.rb
elzar-0.0.2 chef/cookbooks/mysql/libraries/database.rb
elzar-0.0.1 cookbooks/mysql/libraries/database.rb