cookbook 'ecto', '= 0.3.2', :supermarket
ecto (10) Versions 0.3.2 Follow0
Installs, configures, and provides LWRPs for components of Ecto
cookbook 'ecto', '= 0.3.2'
knife cookbook site install ecto
knife cookbook site download ecto
ecto-cookbook
Installs, configures, and provides LWRPs for components of Ecto
Supported Platforms
- Ubuntu
Usage
Include ecto
in your node's run_list
:
{
"run_list": [
"recipe[ecto::default]"
]
}
Runing migrations
First include ecto::default
or ecto::migrator
in your recipe
include_recipe "ecto::migrator"
Then leverage the ecto_migrate
LWRP to run the Ecto migrations found at the given path
ecto_migrate "my_database" do
username "my_username"
password "secure_password"
host "localhost"
migrations_path "/path/to/migrations"
schema "public"
end
Recipes
ecto::default
Installs and configures default components for Ecto
ecto::migrator
Installs and symlinks the migrator
binary to /usr/local/bin/migrator
License and Authors
Author:: Jamie Winsor (jamie@vialstudios.com)
Dependent cookbooks
github >= 0.0.0 |
libarchive >= 0.0.0 |
elixir ~> 0.9.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
0.3.2 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/attributes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/attributes/default.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/attributes/default.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/libraries/ecto_migrator.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/libraries/ecto_migrator.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/recipes/migrator.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/recipes/migrator.rb:25
0.3.2 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/attributes/default.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/attributes/default.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/libraries/ecto_migrator.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/libraries/ecto_migrator.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/recipes/migrator.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/089910b9500f32c42b6455dd/ecto/recipes/migrator.rb:25