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

The application_just_ruby cookbook has been deprecated

The application_just_ruby cookbook has been deprecated and is no longer being maintained by its authors. Use of the application_just_ruby cookbook is no longer recommended. You may find that the application_ruby cookbook is a suitable alternative.

RSS

application_just_ruby (1) Versions 0.0.1

Deploys and configures Ruby-based applications

Berkshelf/Librarian
Policyfile
Knife
cookbook 'application_just_ruby', '~> 0.0.1'
cookbook 'application_just_ruby', '~> 0.0.1', :supermarket
knife cookbook site install application_just_ruby
knife cookbook site download application_just_ruby
README
Dependencies
Quality 22%

application_just_ruby

A simpler version of: https://github.com/poise/application_ruby

Description

This cookbook is designed to be able to describe and deploy Ruby applications.

Note that this cookbook provides the Ruby-specific bindings for the application cookbook; you will find general documentation in that cookbook.

Requirements

Chef 11.0.0 or higher required (for Chef environment use).

The following Opscode cookbooks are dependencies:

  • application

Resources/Providers

The LWRP provided by this cookbook is not meant to be used by itself; make sure you are familiar with the application cookbook before proceeding.

just_ruby

The just_ruby sub-resource LWRP deals with deploying Ruby apps from an SCM repository. It uses the deploy_revision LWRP to perform the bulk of its tasks, and many concepts and parameters map directly to it. Check the documentation for deploy_revision for more information.

Gems will be installed with bundle install --deployment, which results in gems being installed inside the application directory.

When running Bundler, unnecessary groups will be skipped. The list of groups to skip is determined with this algorithm:

  • start with this Array: development test cucumber staging production;
  • the group corresponding to the current environment will be removed from the Array;
  • if the bundler_without_groups attribute is set, those groups will be added to the Array.

For example, for a node running in the production Chef environment, and given:

bundler_without_groups ["mysql"]

Bundler will be run with:

bundle install --without development test cucumber staging mysql

Attribute Parameters

  • bundle_command: The command to execute when calling bundler commands. Useful for specifing alternate commands such as RVM wrappers. Defaults to bundle.
  • bundle_options: additional options which will be appended to the end of the bundle command string. Useful for capturing the output to a file using the tee command e.g. bundle_options "2>&1 | tee -a \some\log\file.log"
  • bundler_deployment: if true, Bundler will be run with the --deployment options.
  • bundler_without_groups: an Array of additional Bundler groups to skip

Usage

A sample recipe that uses the rbenv cookbook to provide ruby and application_procfile to start the app:

include_recipe 'rbenv::default'
include_recipe 'rbenv::ruby_build'
include_recipe 'application_procfile'

rbenv_ruby '2.1.2' do
  global true
end

rbenv_gem 'bundler' do
  ruby_version '2.1.2'
end

application 'example' do
  path '/srv/example'

  owner 'ubuntu'
  group 'ubuntu'

  packages ['git']
  repository 'git@github.com:user/example.git'

  deploy_key File.read(File.expand_path('../../deploy_key', __FILE__))

  environment 'PATH_PREFIX' => '/opt/rbenv/shims/'

  just_ruby do
    bundle_command '/opt/rbenv/shims/bundle'
  end

  procfile do
    app 1
  end
end

Dependent cookbooks

application ~> 4.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.0.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.0.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.0.1 failed this metric

FC016: LWRP does not declare a default action: application_just_ruby/resources/just_ruby.rb:1
FC017: LWRP does not notify when updated: application_just_ruby/providers/just_ruby.rb:7
FC055: Ensure maintainer is set in metadata: application_just_ruby/metadata.rb:1
FC056: Ensure maintainer_email is set in metadata: application_just_ruby/metadata.rb:1
FC059: LWRP provider does not declare use_inline_resources: application_just_ruby/providers/just_ruby.rb:1
FC064: Ensure issues_url is set in metadata: application_just_ruby/metadata.rb:1
FC065: Ensure source_url is set in metadata: application_just_ruby/metadata.rb:1
FC066: Ensure chef_version is set in metadata: application_just_ruby/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: application_just_ruby/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.0.1 passed this metric

No Binaries Metric
            

0.0.1 passed this metric

Publish Metric
            

0.0.1 failed this metric

application_just_ruby is deprecated

Supported Platforms Metric
            

0.0.1 failed this metric

application_just_ruby should declare what platform(s) it supports.

Testing File Metric
            

0.0.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.0.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