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

Select Status

RSS

flyway-cli (7) Versions 0.2.3

Installs and execute flyway cli

Policyfile
Berkshelf
Knife
cookbook 'flyway-cli', '= 0.2.3', :supermarket
cookbook 'flyway-cli', '= 0.2.3'
knife supermarket install flyway-cli
knife supermarket download flyway-cli
README
Dependencies
Quality 0%

flyway-cli-cookbook

Build Status

This cookbook configure the CLI version of the flyway tool, and support multiple databases.

Requirements

An already configured database, and a bunch of flyway migrations.

Usage

include_recipe "flyway-cli::default"

## put your migrations in node[:flyway][:migrations_path]

include_recipe "flyway-cli::migrate"

Attributes

node[:flyway][:version] = "2.1.1"
node[:flyway][:jdbc_driver][:postgresql][:version] = "9.3-1100-jdbc4"
node[:flyway][:jdbc_driver][:mysql][:version] = "5.1.28"
node[:flyway][:jdbc_driver][:jtds][:version] = "1.3.1"

node[:flyway][:confs] = {
    :default => {
        :jdbc_url => "jdbc:postgresql://localhost:5432/database",
        :jdbc_username => "username",
        :jdbc_password => "password"
    },
    :default2 => {
        :jdbc_url => "jdbc:jtds:sqlserver://localhost/database2",
        :jdbc_username => "username2",
        :jdbc_password => "password2"
    }
}

## Determines if the Opscode Java recipe is included
node[:flyway][:include_java_recipe] = true

Recipes

default

Download flyway, extract it in a folder, download jdbc driver for mysql, postgres and sql server, generate configs for the requested databases.

migrate

Launch migrations for every configured database.

Author

Giovanni Toraldo (giovanni.toraldo@cloudesire.com)

Dependent cookbooks

apt >= 0.0.0
java ~> 1.17
postgresql ~> 3.4.10
database ~> 2.1.2
windows ~> 1.36.1

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric
            

0.2.3 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:12
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:16
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:31
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:32
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:33
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/attributes/default.rb:34
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/default.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/default.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/default.rb:19
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:31
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:38
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:45
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:56
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:58
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:63
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:69
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/install.rb:77
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/migrate.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/migrate.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/migrate.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/migrate.rb:18
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/migrate.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/migrate.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/test.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/test.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/test.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/a8caf17a46744251f0c3c603/flyway-cli/recipes/test.rb:22