Sha256: 6bcb10f97a4501b66d6cff63dfc25b71070dc3ee6d2e342dd6e8ab018fc30dab

Contents?: true

Size: 897 Bytes

Versions: 5

Compression:

Stored size: 897 Bytes

Contents

require 'chef/provider/lwrp_base'

class Chef
  class Provider
    class MysqlClient
      class Debian < Chef::Provider::MysqlClient
        use_inline_resources if defined?(use_inline_resources)

        def whyrun_supported?
          true
        end

        action :create do
          converge_by 'debian pattern' do
            %w(mysql-client libmysqlclient-dev).each do |p|
              package p do
                action :install
              end
            end
          end
        end

        action :delete do
          converge_by 'debian pattern' do
            %w(mysql-client libmysqlclient-dev).each do |p|
              package p do
                action :remove
              end
            end
          end
        end
      end
    end
  end
end

Chef::Platform.set :platform => :debian, :resource => :mysql_client, :provider => Chef::Provider::MysqlClient::Debian

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloud-toaster-1.1.6 chef/cookbooks/mysql/libraries/provider_mysql_client_debian.rb
cloud-toaster-1.1.5 chef/cookbooks/mysql/libraries/provider_mysql_client_debian.rb
cloud-toaster-1.1.4 chef/cookbooks/mysql/libraries/provider_mysql_client_debian.rb
cloud-toaster-1.1.3 chef/cookbooks/mysql/libraries/provider_mysql_client_debian.rb
cloud-toaster-1.1.2 chef/cookbooks/mysql/libraries/provider_mysql_client_debian.rb