cookbook 'app', '~> 0.1.1'
app (2) Versions 0.1.1 Follow7
Installs/Configures a Rails app
cookbook 'app', '~> 0.1.1', :supermarket
knife supermarket install app
knife supermarket download app
Description
A collection of Heavy Water Software Inc's
evolving opinions on best practises for configuring and integrating a
Rails application.
Requirements
A Rails application code repository that is configured to manage gem
dependencies via Bundler.
Attributes
-
node["app"]["repository"]
- Code to deploy (defaults to an example Rails 3.1 app) -
node["db"]["adapter"]
- Database such as postgresql, mysql, or sqlite3 (default)
Usage
Include "recipe[app::deploy]" in a run list to install an example
Rails 3.1 application backed by a SQLite3 database.
If you're cloning a private repository add a deploy key at
app/files/default/deploy_key_id_rsa
A more practical case might be to create an "app" role:
name "app" description "My Rails app" run_list [ "role[base]", "recipe[postgresql::server]", "recipe[app::deploy]" ] default_attributes( "app" => { "repository" => "git@github.com:me/myapp.git", "use_deploy_key" => true }, "db" => { "adapter" => "postgresql" } )
Dependent cookbooks
xml >= 0.0.0 |
xslt >= 0.0.0 |
imagemagick >= 0.0.0 |
nginx >= 0.0.0 |
bluepill >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.1 passed this metric
Contributing File Metric
0.1.1 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
0.1.1 failed this metric
FC007: Ensure recipe dependencies are reflected in cookbook metadata: app/recipes/db_mysql.rb:1
FC064: Ensure issues_url is set in metadata: app/metadata.rb:1
FC065: Ensure source_url is set in metadata: app/metadata.rb:1
FC066: Ensure chef_version is set in metadata: app/metadata.rb:1
FC069: Ensure standardized license defined in metadata: app/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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
0.1.1 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
0.1.1 passed this metric
0.1.1 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
0.1.1 failed this metric
FC007: Ensure recipe dependencies are reflected in cookbook metadata: app/recipes/db_mysql.rb:1
FC064: Ensure issues_url is set in metadata: app/metadata.rb:1
FC065: Ensure source_url is set in metadata: app/metadata.rb:1
FC066: Ensure chef_version is set in metadata: app/metadata.rb:1
FC069: Ensure standardized license defined in metadata: app/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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
0.1.1 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
0.1.1 failed this metric
FC064: Ensure issues_url is set in metadata: app/metadata.rb:1
FC065: Ensure source_url is set in metadata: app/metadata.rb:1
FC066: Ensure chef_version is set in metadata: app/metadata.rb:1
FC069: Ensure standardized license defined in metadata: app/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.1 passed this metric
Testing File Metric
0.1.1 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
0.1.1 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
0.1.1 failed this metric
0.1.1 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