Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

database_upgrader (2) Versions 1.0.0

Manage database schema upgrades with SQL Server

Berkshelf/Librarian
Policyfile
Knife
cookbook 'database_upgrader', '~> 1.0.0'
cookbook 'database_upgrader', '~> 1.0.0', :supermarket
knife cookbook site install database_upgrader
knife cookbook site download database_upgrader
README
Dependencies
Changelog
Quality 11%

database-upgrader-cookbook

Manages database schema updates by persisting what schema updates occur on the database in a Version table.

Supported Platforms

Windows platforms with SQL Server installed

Attributes

<table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> <tr> <td>['database_upgrader']['cache_path']</td> <td>String</td> <td>where to cache the database upgrader files</td> <td><tt>database_upgrader within the chef file cache directory</tt></td> </tr> <tr> <td>['database_upgrader']['cache_archive']</td> <td>String</td> <td>where the archive file that contains the DatabaseUpgrader.exe should be copied to</td> <td>DatabaseUpgrader.zip inside of the cache_path</td> </tr> <tr> <td>['database_upgrader']['install_directory']</td> <td>String</td> <td>where the database upgrader should be installed</td> <td>DatabaseUpgrader inside of the cache_path</td> </tr> </table>

Usage

On your application cookbook, use the resource:

include_recipe 'database_upgrader' # to ensure that it's installed

database_upgrader_checked "make sure database is up to date" do
  connection_string 'Server=(local);Database=test;Integrated Security=SSPI'
  scripts_directory 'C:\\temp\\scripts'
  application_version '1.2.3.4'
end

License and Authors

Author:: Michael Hedgpeth (mhedgpeth@gmail.com)

Dependent cookbooks

resource >= 0.0.0
dsc >= 0.0.0
windows >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

Initial release of database-upgrader

Collaborator Number Metric
            

1.0.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

1.0.0 failed this metric

FC016: LWRP does not declare a default action: database_upgrader/resources/checked.rb:1
FC064: Ensure issues_url is set in metadata: database_upgrader/metadata.rb:1
FC065: Ensure source_url is set in metadata: database_upgrader/metadata.rb:1
FC066: Ensure chef_version is set in metadata: database_upgrader/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: database_upgrader/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

1.0.0 failed this metric

database_upgrader does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

1.0.0 failed this metric

Failure: Cookbook should not contain binaries. Found:
database_upgrader/files/default/DatabaseUpgrader.zip

Publish Metric
            

1.0.0 passed this metric

Supported Platforms Metric
            

1.0.0 failed this metric

database_upgrader should declare what platform(s) it supports.

Testing File Metric
            

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number