Sha256: 52f6c57772cdc6a22325ca9945853bb175fe176f73c0c370cc6762f52adf722c

Contents?: true

Size: 553 Bytes

Versions: 5

Compression:

Stored size: 553 Bytes

Contents

if defined?(ChefSpec)
  def create_mysql_client(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:mysql_client, :create, resource_name)
  end

  def delete_mysql_client(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:mysql_client, :delete, resource_name)
  end

  def create_mysql_service(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:mysql_service, :create, resource_name)
  end

  def enable_mysql_service(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:mysql_service, :enable, resource_name)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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