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

Select Status

RSS

bash (3) Versions 0.1.2

Installs/Configures bash

Policyfile
Berkshelf
Knife
cookbook 'bash', '~> 0.1.2', :supermarket
cookbook 'bash', '~> 0.1.2'
knife supermarket install bash
knife supermarket download bash
README
Dependencies
Quality 17%

bash cookbook

Build Status

This cookbook provides a simple bash_profile LWRP.

It create multiple files in bash_profile.d folder and merge them into bash_profile file without loosing any local existing version.

Obviously, it works only on Linux platform.

Usage

Just add bash to your cookbook dependency list.

Requirement

N/C

Resource / Provider

  • bash_profile : does the init/setup/parse/merge process. This LWRP will create bash_profile.d folder if not present.

If an existing bash_profile file exists in user home folder, it will be saved in a permanent init file at the very first run and then will be merged each time LWRP is called.

Action

  • add: (default) - add a specified file to bash_profile.d folder and merge all files from this folder to given user bash_profile file.
  • remove: - remove a specified file from bash_profile.d folder.

Attributes

  • filename - name of the file

  • user - user to interact with. Group and home folder will be automaticly resolved from system informations.

  • content - String to be set on the new profile file. It easily works with simple string, multiline string, or strings loaded from a file.

Syntax

bash_profile 'profile.addin' do
  user 'jdoe'
  content "PATH=/home/jdoe/my_bin:$PATH"
end

Testing

Includes basic [chefspec](sethvargo/chefspec) support and matchers.

  1. bundle install
  2. rspec

Author

Author:: Guilhem Lettron (guilhem.lettron@optiflows.com)

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

expect Applicable Versions

Collaborator Number Metric
            

0.1.2 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.2 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.2 failed this metric

FC064: Ensure issues_url is set in metadata: bash/metadata.rb:1
FC065: Ensure source_url is set in metadata: bash/metadata.rb:1
FC066: Ensure chef_version is set in metadata: bash/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: bash/metadata.rb:1
FC069: Ensure standardized license defined in metadata: bash/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.2 passed this metric

Testing File Metric
            

0.1.2 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.2 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