bourdain 1.2.20 → 1.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 398dc74120faa9fe63e597bb7306d984d7c4569f
4
- data.tar.gz: dfa26cd22c7587b2b60b74daa5b3df8daec96271
3
+ metadata.gz: 858fb417500761f1b4175dee1601c595b0e789c6
4
+ data.tar.gz: 5add19f3f113ad75b24cf55b61ac0089558340f2
5
5
  SHA512:
6
- metadata.gz: b1ebcd42f10d8085bd17ab91fe407818196228d3c4028f14068bfc5427297bdb05e16e9f230d29586e56cb32c5a76b6fb761c2eeb8a187ffb46bdc47f36d756f
7
- data.tar.gz: ac4cf95116d4e96db49ffc4d0753801999903e0ad126c5f5e2903abec12ea065fd49c129de938e513ffa4cb3f3661ca7cddc7a6ddadcfc74bd829c91e797faa8
6
+ metadata.gz: 7b9fb63cd6aae269c96214b4f62c818f82a5f15e3db58004a70d68ed002b3ac4b4ee67dd44cbf6ccb839886fe6fda07703e247aba9f444c971ceedfaff81187e
7
+ data.tar.gz: 76ab3a41cc74dedaeee5e7925cb354e486622bca360445539c6bbc9ec9b8a78ecf24840756b1d2b5648ab7a4d2f1f0f05ee503105deb4271a07bae43becd3931
data/Readme.md CHANGED
@@ -1,3 +1,100 @@
1
- # Bourdain
1
+ # Bourdain ![Version](https://img.shields.io/gem/v/bourdain.svg?style=flat-square)
2
2
 
3
- Tools for badass chefs
3
+ Opinionated tools for badass chefs. Think ChefDK for Blue Jeans.
4
+
5
+
6
+
7
+ ## Usage, Configuration &c.
8
+
9
+ ### Usage
10
+
11
+ Call on `tony` to use Bourdain:
12
+
13
+ ```
14
+ $ tony
15
+
16
+ __ __
17
+ /\ \ /\ \ __
18
+ \ \ \____ ___ __ __ _ __ \_\ \ __ /\_\ ___
19
+ \ \ '__`\ / __`\/\ \/\ \/\`'__\/'_` \ /'__`\ \/\ \ /' _ `\
20
+ \ \ \L\ \/\ \L\ \ \ \_\ \ \ \//\ \L\ \/\ \L\.\_\ \ \/\ \/\ \
21
+ \ \_,__/\ \____/\ \____/\ \_\\ \___,_\ \__/.\_\\ \_\ \_\ \_\
22
+ \/___/ \/___/ \/___/ \/_/ \/__,_ /\/__/\/_/ \/_/\/_/\/_/
23
+ v1.2.0
24
+
25
+
26
+ Tools for badass chefs
27
+
28
+ Usage: tony [<options>] <command>
29
+
30
+ Commands:
31
+ bump: Bump a VERSION file (patch by default)
32
+ check: Check the state of the Kitchen, Bourdain and other things
33
+ generate: Generate various things. Take that, Chef DK!
34
+
35
+ Options:
36
+ -v, --version Print version and exit
37
+ -h, --help Show this message
38
+ ```
39
+
40
+ As you can see, there are three basic commands. Quick examples:
41
+
42
+ ```
43
+ $ tony bump # patch
44
+ $ tony bump:minor
45
+ $ tony bump:major
46
+ $ tony check
47
+ $ tony check chef
48
+ $ tony check cookbooks
49
+ $ tony generate cookbook path/to/my/cookbook
50
+ ```
51
+
52
+ ### Configuration
53
+
54
+ The first time you `check`, Bourdain should ask you to fill out a file at
55
+ `~/.bourdain.json`:
56
+
57
+ ```
58
+ {
59
+ "gitlab": {
60
+ "token": "ThisIsWhereYouPutYourToken"
61
+ }
62
+ }
63
+ ```
64
+
65
+
66
+ ## Development
67
+
68
+ ### TODO
69
+
70
+ ```ruby
71
+ update [<options>]
72
+ Update the underlying Chef repo, cookbooks, and utilities
73
+ --pull :: Perform a git pull on resources (default: false)
74
+
75
+ generate user [<options>] <name>
76
+ Generate a new user data bag in the current repo
77
+ --shell <s> :: Choose a default shell (default: zsh)
78
+ --password <s> :: Provide a password for authentication
79
+ --ssh-key <s> :: Provide an SSH key for authentication (default: intelligent)
80
+ --groups <s> :: Provide a comma-separated list of groups
81
+ --comment <s> :: Provide a comment (usually a full name)
82
+ --phone <s> :: Provide a phone or pager number
83
+ --email <s> :: Provide an email address
84
+
85
+ generate node [<options>] <name>
86
+ Generate a new node resource in the current repo
87
+ --environment <s> :: Provide an environment name
88
+ --run-list <s> :: Provide a run list string
89
+
90
+ generate file [<options>] <name> [<source>]
91
+ Generate a new file in the current cookbook
92
+ --namespace <s> :: Provide a namespace (default: default)
93
+
94
+ generate template [<options>] <name> [<source>]
95
+ Generate a new template in the current cookbook
96
+ --namespace <s> :: Provide a namespace (default: default)
97
+
98
+ generate data_bag [<options>] [<namepace>] <name>
99
+ Generate a new data bag in the current cookbook
100
+ ```
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.20
1
+ 1.2.21
@@ -35,17 +35,19 @@ module Bourdain
35
35
  "--git-dir=#{File.join repo_dir(repo), '.git'}"
36
36
  end
37
37
 
38
+ def fetch repo
39
+ `git #{git_dir repo} fetch >/dev/null 2>&1`
40
+ end
41
+
38
42
  def youre_behind? repo
39
- `git fetch #{repo_dir repo} >/dev/null 2>&1`
40
- raise unless $?.exitstatus.zero?
43
+ fetch repo
41
44
  behind = `git #{git_dir repo} log ..origin/master --oneline`.split("\n").length > 0
42
45
  raise unless $?.exitstatus.zero?
43
46
  return behind
44
47
  end
45
48
 
46
49
  def youre_ahead? repo
47
- `git fetch #{repo_dir repo} >/dev/null 2>&1`
48
- raise unless $?.exitstatus.zero?
50
+ fetch repo
49
51
  ahead = `git #{git_dir repo} log origin/master.. --oneline`.split("\n").length > 0
50
52
  raise unless $?.exitstatus.zero?
51
53
  return ahead
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bourdain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.20
4
+ version: 1.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-03 00:00:00.000000000 Z
11
+ date: 2015-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pmap
@@ -95,14 +95,12 @@ files:
95
95
  - LICENSE
96
96
  - Rakefile
97
97
  - Readme.md
98
- - TODO.md
99
98
  - VERSION
100
99
  - bin/tony
101
100
  - bin/tony-bump
102
101
  - bin/tony-check
103
102
  - bin/tony-generate
104
103
  - bourdain.gemspec
105
- - install-or-upgrade.sh
106
104
  - lib/bourdain.rb
107
105
  - lib/bourdain/helpers.rb
108
106
  - lib/bourdain/helpers/config.rb
@@ -139,7 +137,6 @@ files:
139
137
  - templates/cookbook/metadata.rb
140
138
  - templates/cookbook/pre-commit
141
139
  - templates/cookbook/recipes/example.rb
142
- - test.sh
143
140
  homepage: https://github.com/sczizzo/bourdain
144
141
  licenses:
145
142
  - ISC
data/TODO.md DELETED
@@ -1,41 +0,0 @@
1
- ~/.bourdain.json
2
-
3
- Getting Smarter
4
- Considers branch you're on
5
- Considers version of branch on origin
6
- Excludes changes in **/*.md
7
-
8
- Default <options> are...
9
- --help :: Show this message
10
- --debug :: Enable debug logging
11
- --jk :: Just explain what would happen
12
-
13
- update [<options>]
14
- Update the underlying Chef repo, cookbooks, and utilities
15
- --pull :: Perform a git pull on resources (default: false)
16
-
17
- generate user [<options>] <name>
18
- Generate a new user data bag in the current repo
19
- --shell <s> :: Choose a default shell (default: zsh)
20
- --password <s> :: Provide a password for authentication
21
- --ssh-key <s> :: Provide an SSH key for authentication %(default: intelligent)
22
- --groups <s> :: Provide a comma-separated list of groups
23
- --comment <s> :: Provide a comment (usually a full name)
24
- --phone <s> :: Provide a phone or pager number
25
- --email <s> :: Provide an email address
26
-
27
- generate node [<options>] <name>
28
- Generate a new node resource in the current repo
29
- --environment <s> :: Provide an environment name
30
- --run-list <s> :: Provide a run list string
31
-
32
- generate file [<options>] <name> [<source>]
33
- Generate a new file in the current cookbook
34
- --namespace <s> :: Provide a namespace (default: default)
35
-
36
- generate template [<options>] <name> [<source>]
37
- Generate a new template in the current cookbook
38
- --namespace <s> :: Provide a namespace (default: default)
39
-
40
- generate data.?bag [<options>] [<namepace>] <name>
41
- Generate a new data bag in the current cookbook
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- rm -f *.gem
3
- gem build *.gemspec
4
- gem install *.gem
data/test.sh DELETED
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env bash
2
- plea=no
3
- read -p "You ran test kitch, right? (yes/no) " plea
4
- while [ "yes" != "$plea" -a "no" != "$plea" ] ; do
5
- echo "Hey, man, 'yes' or 'no' please."
6
- read -p "But, really you ran test kitchen? (yes/no) " plea
7
- done
8
- if [ "no" == "$plea" ] ; then
9
- echo "Thanks for your honesty. Bailing!"
10
- exit 1
11
- fi
12
- echo "All right then..."