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 supermarket 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.


application_just_ruby (1) Versions 0.0.1

Deploys and configures Ruby-based applications

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


A simpler version of:


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.


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

The following Opscode cookbooks are dependencies:

  • application


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.


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


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

rbenv_gem 'bundler' do
  ruby_version '2.1.2'

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

  owner 'ubuntu'
  group 'ubuntu'

  packages ['git']
  repository ''

  deploy_key'../../deploy_key', __FILE__))

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

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

  procfile do
    app 1

Dependent cookbooks

application ~> 4.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric

0.0.1 failed this metric

FC016: LWRP does not declare a default action: /tmp/cook/bf97056b1b70fadd162282c8/application_just_ruby/resources/just_ruby.rb:1
FC017: LWRP does not notify when updated: /tmp/cook/bf97056b1b70fadd162282c8/application_just_ruby/providers/just_ruby.rb:7