cookbook 'ruby-env-cookbook', '= 0.1.0'
ruby-env-cookbook (5) Versions 0.1.0 Follow0
Installs/Configures a ruby dev environment
cookbook 'ruby-env-cookbook', '= 0.1.0', :supermarket
knife supermarket install ruby-env-cookbook
knife supermarket download ruby-env-cookbook
ruby-env-cookbook
Use this cookbook to set up a ruby development environment!
Supported Platforms
Vagrant with ubuntu
Attributes
MySQL attributes
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['ruby_env_cookbook']['mysql']['service_name']</tt></td>
<td>String</td>
<td>The name of the MySQL service that is installed</td>
<td><tt>default</tt></td>
</tr>
<tr>
<td><tt>['ruby_env_cookbook']['mysql']['version']</tt></td>
<td>String</td>
<td>The version of the MySQL service that is installed</td>
<td><tt>5.5</tt></td>
</tr>
<tr>
<td><tt>['ruby_env_cookbook']['mysql']['port']</tt></td>
<td>String</td>
<td>The port on which the MySQL service is installed</td>
<td><tt>3306</tt></td>
</tr>
<tr>
<td><tt>['ruby_env_cookbook']['mysql']['password']</tt></td>
<td>String</td>
<td>The password for the MySQL service that is installed</td>
<td><tt>password</tt></td>
</tr>
<tr>
<td><tt>['ruby_env_cookbook']['mysql']['action']</tt></td>
<td>Array</td>
<td>The actions that will be run when the MySQL service that is installed</td>
<td><tt>[:create, :start]</tt></td>
</tr>
<tr>
<td><tt>['ruby_env_cookbook']['mysql']['include_client']</tt></td>
<td>Boolean</td>
<td>If true, the MySQL client and development libraries will be installed</td>
<td><tt>true</tt></td>
</tr>
</table>
RBEnv attributes
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['ruby_env_cookbook']['rbenv']['user']</tt></td>
<td>String</td>
<td>The user for which this ruby is installed</td>
<td><tt>vagrant</tt></td>
</tr>
<tr>
<td><tt>['ruby_env_cookbook']['rbenv']['version']</tt></td>
<td>String</td>
<td>The version of ruby to be installed</td>
<td><tt>2.4.2</tt></td>
</tr>
<tr>
<td><tt>['ruby_env_cookbook']['rbenv']['gems']</tt></td>
<td>Array</td>
<td>An array of gems to be installed</td>
<td><tt>[{name: 'bundler', version: '1.16.0'}]</tt></td>
</tr>
</table>
Usage
Recipes
Include ruby-env-cookbook
recipes in your node's run_list
:
{ "run_list": [ "recipe[ruby-env-cookbook::apt]", "recipe[ruby-env-cookbook::mysql]", "recipe[ruby-env-cookbook::phantomjs]", "recipe[ruby-env-cookbook::rbenv]" ] }
or in a vagrant environment:
chef.add_recipe 'ruby-env-cookbook::apt'
chef.add_recipe 'ruby-env-cookbook::mysql'
chef.add_recipe 'ruby-env-cookbook::phantomjs'
chef.add_recipe 'ruby-env-cookbook::rbenv'
License and Authors
License:: MIT License
Author:: Daniel Waters (daniel.waters@softwire.com)
Dependent cookbooks
apt ~> 2.9.2 |
mysql ~> 8.0 |
phantomjs2 ~> 1.1.0 |
ruby_rbenv ~> 2.0.5 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
0.1.0
Initial release of cookbook, including apt, mysql, phantomjs and rbenv recipes
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.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
0.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: ruby-env-cookbook/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: ruby-env-cookbook/metadata.rb:1
FC069: Ensure standardized license defined in metadata: ruby-env-cookbook/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.1.0 failed this metric
ruby-env-cookbook 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
0.1.0 passed this metric
Testing File Metric
0.1.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
0.1.0 passed this metric
0.1.0 failed this metric
0.1.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
0.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: ruby-env-cookbook/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: ruby-env-cookbook/metadata.rb:1
FC069: Ensure standardized license defined in metadata: ruby-env-cookbook/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.1.0 failed this metric
ruby-env-cookbook 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
0.1.0 passed this metric
Testing File Metric
0.1.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
0.1.0 passed this metric
0.1.0 failed this metric
FC067: Ensure at least one platform supported in metadata: ruby-env-cookbook/metadata.rb:1
FC069: Ensure standardized license defined in metadata: ruby-env-cookbook/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.0 failed this metric
ruby-env-cookbook 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
0.1.0 passed this metric
Testing File Metric
0.1.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
0.1.0 passed this metric
0.1.0 passed this metric
0.1.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
0.1.0 passed this metric
0.1.0 passed this metric