cookbook 'ecto', '= 0.3.0'
ecto (10) Versions 0.3.0 Follow0
Installs, configures, and provides LWRPs for components of Ecto
cookbook 'ecto', '= 0.3.0', :supermarket
knife supermarket install ecto
knife supermarket download ecto
ecto-cookbook
Installs, configures, and provides LWRPs for components of [Ecto](github.com/elixir-lang/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
elixir ~> 0.9.0 |
libarchive >= 0.0.0 |
github >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
0.1.0
Initial release of Ecto cookbook
Foodcritic Metric
0.3.0 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/attributes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/attributes/default.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/attributes/default.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/libraries/ecto_migrator.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/libraries/ecto_migrator.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/recipes/migrator.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/recipes/migrator.rb:25
0.3.0 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/attributes/default.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/attributes/default.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/libraries/ecto_migrator.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/libraries/ecto_migrator.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/recipes/migrator.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/6b98015618cbc911b61b35c5/ecto/recipes/migrator.rb:25