chef_helpers 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a491b130004bcf71472edcc0f8fb1284fbf0bb7
4
- data.tar.gz: 6e2e3e916fa05785ab34ab5841c01f3255f3157c
3
+ metadata.gz: d7c5ef8cb3431691184a4d2636524f262ff67ec2
4
+ data.tar.gz: f95b8ec5b1baaa2a41becfca638de68a9994ecd6
5
5
  SHA512:
6
- metadata.gz: 54532b47360ddef55771548d145f6433c49b55a77ecb44e4ff43f5f2e9b0acc0b2130049e3d2a8b1eac65964b7badab26c69e7cfe707495640fb72fcb3ea6290
7
- data.tar.gz: a5087c580ed46f456fb72f09f1a461b0066f318ca79125a19ffa44053f28551a840f976fe7b60f348ff8f6f1a9cacf56ac480192ec043c19e8622eb382c27c64
6
+ metadata.gz: 39d35096590a10e99e5ea05e2398f832916f51ab888fce96cd7c7ea6d83bd95324a4fc464f7a8e365a8bb29699138aa86f8dba1b52611306e9931d0e42f45a57
7
+ data.tar.gz: 4228e124e598d4813207d69453bfc45f7b4b33468bb254ec9a4819f038a8934a2258f938b08f1b19d570d42f47f1eb3dc0f1d1878d91f36a19fb230675ece911
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # ChefHelpers
2
+ [![Gem Version](https://badge.fury.io/rb/chef_helpers.svg)](https://badge.fury.io/rb/chef_helpers)
3
+ [![Build Status](https://travis-ci.org/baberthal/chef_helpers.svg?branch=master)](https://travis-ci.org/baberthal/chef_helpers)
2
4
 
3
5
  This gem provides a set of helper methods to use in chef recipies. Currently, the only implemented method is `#encrypt_password`, which takes a plain-text password and generates a shadow hash for use by the User resource.
4
6
 
@@ -10,7 +10,12 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['morgan@jmorgan.org']
11
11
 
12
12
  spec.summary = 'Provides a set of helper methods for chef recipes.'
13
- spec.description = File.read(File.expand_path('../README.md', __FILE__))
13
+ spec.description = <<-EODES
14
+ This gem provides a set of helper methods to use in chef recipies.
15
+ Currently, the only implemented method is `#encrypt_password`, \
16
+ which takes a plain-text password and generates a shadow hash for use by the \
17
+ Chef User resource.
18
+ EODES
14
19
  spec.homepage = 'https://github.com/baberthal/chef_helpers.git'
15
20
  spec.license = 'MIT'
16
21
 
@@ -1,3 +1,3 @@
1
1
  module ChefHelpers # rubocop:disable Style/Documentation
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Morgan Lieberthal
@@ -80,83 +80,9 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: |
84
- # ChefHelpers
85
-
86
- This gem provides a set of helper methods to use in chef recipies. Currently, the only implemented method is `#encrypt_password`, which takes a plain-text password and generates a shadow hash for use by the User resource.
87
-
88
- ## Installation
89
-
90
- Add this line to your application's Gemfile:
91
-
92
- ```ruby
93
- gem 'chef_helpers'
94
- ```
95
-
96
- And then execute:
97
-
98
- $ bundle
99
-
100
- Or install it yourself as:
101
-
102
- $ gem install chef_helpers
103
-
104
- ## Usage
105
-
106
- Include the gem in your chef cookbook:
107
-
108
- In a recipe:
109
- ```ruby
110
- extend ChefHelpers
111
- ```
112
-
113
- In an LWRP:
114
- ```ruby
115
- include ChefHelpers
116
- ```
117
-
118
- In any ruby file:
119
- ```ruby
120
- include ChefHelpers
121
- ```
122
-
123
- Encrypt a password like this:
124
- ```ruby
125
- password = 'shhitsasecret'
126
- shadow_hash = encrypt_password(password)
127
- ```
128
-
129
- Use it in a user recipe like this:
130
- ```ruby
131
- password_hash = encrypt_password('shhitsasecret')
132
-
133
- user 'my_user' do
134
- password password_hash
135
- ...
136
- end
137
- ```
138
-
139
- ## Development
140
-
141
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
142
-
143
- To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
144
-
145
- ## Contributing
146
-
147
- 1. Fork this repo
148
- 2. Create a new branch for your feature
149
- 3. Write specs for the feature / method
150
- 4. Implement the feature / method
151
- 5. Create a pull request
152
- 6. ???
153
- 7. Profit
154
-
155
- Bug reports and pull requests are welcome on GitHub at https://github.com/baberthal/chef_helpers.
156
-
157
- ## License
158
-
159
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
83
+ description: |2
84
+ This gem provides a set of helper methods to use in chef recipies.
85
+ Currently, the only implemented method is `#encrypt_password`, which takes a plain-text password and generates a shadow hash for use by the Chef User resource.
160
86
  email:
161
87
  - morgan@jmorgan.org
162
88
  executables: []