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

RSS

twitter (4) Versions 1.0.8

Installs/Configures tweeter the twitterer for windows redhat centos fedora ubuntu debian

Berkshelf/Librarian
Policyfile
Knife
cookbook 'twitter', '~> 1.0.8'
cookbook 'twitter', '~> 1.0.8', :supermarket
knife cookbook site install twitter
knife cookbook site download twitter
README
Dependencies
Quality 44%

Description

Installs twitter gem and Chef library to provide easy tweeting in recipes via Twitter:tweet()

Requirements

Rubygems; works on linux and windows!

Attributes

Tune to set temp and location of your encrypted data bag secret, the name of your encrypted data bag for secret twitter application settings, the name of your twitter application, and any default tags to tweet at. Note: my windows install still is using old ruby and old chef, so the databag and user attributes are arrays. This should change.

Usage

Check out full functioned example.rb for details by adding "twitter" and "twitter::example" to the run list, then let chef run twice. Version 1.0.8 of this cookbook adds support for chef_gem and cleans up a few minor items. It is still largely unchanged from previous versions.

1 register your [:twitter][:user] app account https://dev.twitter.com/

2 create and distribute a pre-shared "encrypted_data_bag_secret" file to all nodes (if you do not already have one) http://wiki.opscode.com/display/chef/Encrypted+Data+Bags

2 create the encrypted [:twitter][:databag] data bag to hold your [:twitter][:user] secret app settings

knife data bag create --secret-file /path/encrypted_data_bag_secret tweeter twitter_name

3 edit json secret [:twitter][:user] app settings inside your [:twitter][:databag] encrypted data bag

knife data bag edit --secret-file /path/encrypted_data_bag_secret tweeter twitter_name

{ "id": "twitter_name", "consumer_key": "string", "consumer_secret": "string", "oauth_token": "string", "oauth_token_secret": "string" }

4

node[:twitter][:admin].each { |a| Tweeter.tweet(a, "if you use @nikeplus you should have an account on http://bit.ly/smashrun smashrun", settings["consumer_key"], settings["consumer_secret"], settings["oauth_token"], settings["oauth_token_secret"]) }

5 profit

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

cerberus Applicable Versions

Collaborator Number Metric
            

1.0.8 failed this metric

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

Contributing File Metric
            

1.0.8 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
            

1.0.8 failed this metric

FC064: Ensure issues_url is set in metadata: twitter/metadata.rb:1
FC065: Ensure source_url is set in metadata: twitter/metadata.rb:1
FC066: Ensure chef_version is set in metadata: twitter/metadata.rb:1
FC069: Ensure standardized license defined in metadata: twitter/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

1.0.8 passed this metric

No Binaries Metric
            

1.0.8 passed this metric

Publish Metric
            

1.0.8 passed this metric

Supported Platforms Metric
            

1.0.8 passed this metric

Testing File Metric
            

1.0.8 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
            

1.0.8 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