cookbook 'bash', '~> 0.1.2'
bash (3) Versions 0.1.2 Follow3
Installs/Configures bash
cookbook 'bash', '~> 0.1.2', :supermarket
knife supermarket install bash
knife supermarket download bash
bash cookbook
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 fileuser
- 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.
bundle install
rspec
Author
Author:: Guilhem Lettron (guilhem.lettron@optiflows.com)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
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
0.1.2 failed this 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
0.1.2 failed this metric
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
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
0.1.2 failed this 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