express42-cookbooks/postgresql_lwrp

View on GitHub
libraries/matchers.rb

Summary

Maintainability
A
0 mins
Test Coverage
if defined?(ChefSpec)
  def create_postgresql(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:postgresql, :create, resource_name)
  end

  def create_postgresql_user(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:postgresql_user, :create, resource_name)
  end

  def create_postgresql_database(resource_name)
    ChefSpec::Matchers::ResourceMatcher.new(:postgresql_database, :create, resource_name)
  end
end