Knife cookbook create --type=minimal


#1

I’ve opened “New Feature” ticket
http://tickets.opscode.com/browse/CHEF-4062 with no code yet.

Reason: Tired of cleaning up new cookbooks

Essence:

knife cookbook create foobar (works as normal, --type=full as default)

knife cookbook create foobar --type=minimal will give you only the
following:

  1. Same metadata.rb as ‘full’
  2. Same README as ‘full’
  3. Same CHANGELOG as ‘full’
  4. Same recipes/default.rb as ‘full’

Nothing else.

Oviously Opscode’s ultimate call, but I wanted to throw it out
here as well. Thoughts? Feel free to email me directly if you
prefer.


#2

On 4/4/13 11:08 AM, Jeff Blaine wrote:

I’ve opened “New Feature” ticket
http://tickets.opscode.com/browse/CHEF-4062 with no code yet.

A bit late to the +1 party here, but I immediately said “Oh, I want
this.” when I saw that bug roll in.

Cheers,

Steven


Steven Danna
Systems Engineer, Opscode, Inc
GPG Key: http://stevendanna.github.com/downloads/code/public.key


#3

Anyone who wants this should go Vote on the ticket, and possibly Watch
it as well.

On Wed, Apr 10, 2013 at 6:36 AM, Steven Danna steve@opscode.com wrote:

On 4/4/13 11:08 AM, Jeff Blaine wrote:

I’ve opened “New Feature” ticket
http://tickets.opscode.com/browse/CHEF-4062 with no code yet.

A bit late to the +1 party here, but I immediately said “Oh, I want
this.” when I saw that bug roll in.

Cheers,

Steven


Steven Danna
Systems Engineer, Opscode, Inc
GPG Key: http://stevendanna.github.com/downloads/code/public.key


#4

Based on the community practices of doing application and library
cookbooks, maybe we add those types as well.

Application would give you:

attributes/default.rb
recipes/default.rb
metadata.rb
README
CHANGELOG

Library would give you:

attributes/default.rb
providers/default.rb
resources/default.rb
metadata.rb
README
CHANGELOG

I find myself deleting files/folders to put things in both of those
formats all the time.

Thanks!

Kevin

On 4/10/13 3:36 AM, “Steven Danna” steve@opscode.com wrote:

On 4/4/13 11:08 AM, Jeff Blaine wrote:

I’ve opened “New Feature” ticket
http://tickets.opscode.com/browse/CHEF-4062 with no code yet.

A bit late to the +1 party here, but I immediately said “Oh, I want
this.” when I saw that bug roll in.

Cheers,

Steven


Steven Danna
Systems Engineer, Opscode, Inc
GPG Key: http://stevendanna.github.com/downloads/code/public.key


#5

I’d probably add attributes/default.rb to the list, but it sure sounds like a good idea.

I’d actually go as far as making this the default, or at least configurable. It would save a lot of deleting after creating a new cookbook. :slight_smile:

  • cassiano

On Thursday, April 4, 2013 at 15:08, Jeff Blaine wrote:

I’ve opened “New Feature” ticket
http://tickets.opscode.com/browse/CHEF-4062 with no code yet.

Reason: Tired of cleaning up new cookbooks

Essence:

knife cookbook create foobar (works as normal, --type=full as default)

knife cookbook create foobar --type=minimal will give you only the
following:

  1. Same metadata.rb as ‘full’
  2. Same README as ‘full’
  3. Same CHANGELOG as ‘full’
  4. Same recipes/default.rb as ‘full’

Nothing else.

Oviously Opscode’s ultimate call, but I wanted to throw it out
here as well. Thoughts? Feel free to email me directly if you
prefer.


#6

I’ve wanted this forever, and I would agree with Cassiano that making it the default would be ideal.


Larry Wright

On Thursday, April 4, 2013 at 1:16 PM, Cassiano Leal wrote:

I’d probably add attributes/default.rb to the list, but it sure sounds like a good idea.

I’d actually go as far as making this the default, or at least configurable. It would save a lot of deleting after creating a new cookbook. :slight_smile:

  • cassiano

On Thursday, April 4, 2013 at 15:08, Jeff Blaine wrote:

I’ve opened “New Feature” ticket
http://tickets.opscode.com/browse/CHEF-4062 with no code yet.

Reason: Tired of cleaning up new cookbooks

Essence:

knife cookbook create foobar (works as normal, --type=full as default)

knife cookbook create foobar --type=minimal will give you only the
following:

  1. Same metadata.rb as ‘full’
  2. Same README as ‘full’
  3. Same CHANGELOG as ‘full’
  4. Same recipes/default.rb as ‘full’

Nothing else.

Oviously Opscode’s ultimate call, but I wanted to throw it out
here as well. Thoughts? Feel free to email me directly if you
prefer.


#7

I also +1 to this. Think it would be a great addition.

-Pete

On Thu, Apr 4, 2013 at 3:19 PM, Larry Wright larrywright@gmail.com wrote:

I’ve wanted this forever, and I would agree with Cassiano that making it
the default would be ideal.


Larry Wright

On Thursday, April 4, 2013 at 1:16 PM, Cassiano Leal wrote:

I’d probably add attributes/default.rb to the list, but it sure sounds
like a good idea.

I’d actually go as far as making this the default, or at least
configurable. It would save a lot of deleting after creating a new
cookbook. :slight_smile:

  • cassiano

On Thursday, April 4, 2013 at 15:08, Jeff Blaine wrote:

I’ve opened “New Feature” ticket
http://tickets.opscode.com/browse/CHEF-4062 with no code yet.

Reason: Tired of cleaning up new cookbooks

Essence:

knife cookbook create foobar (works as normal, --type=full as default)

knife cookbook create foobar --type=minimal will give you only the
following:

  1. Same metadata.rb as ‘full’
  2. Same README as ‘full’
  3. Same CHANGELOG as ‘full’
  4. Same recipes/default.rb as ‘full’

Nothing else.

Oviously Opscode’s ultimate call, but I wanted to throw it out
here as well. Thoughts? Feel free to email me directly if you
prefer.


#8

This sounds GREAT!

I’m betting the code for this would be minimally intrusive, and would
have immediate payoffs.

Something to consider: there’s also berks cookbook and such - maybe
these tools might be a good place to affect this change before it gets
into mainline knife?

On Thu, Apr 4, 2013 at 3:19 PM, Larry Wright larrywright@gmail.com wrote:

I’ve wanted this forever, and I would agree with Cassiano that making it the
default would be ideal.


Larry Wright

On Thursday, April 4, 2013 at 1:16 PM, Cassiano Leal wrote:

I’d probably add attributes/default.rb to the list, but it sure sounds like
a good idea.

I’d actually go as far as making this the default, or at least configurable.
It would save a lot of deleting after creating a new cookbook. :slight_smile:

  • cassiano

On Thursday, April 4, 2013 at 15:08, Jeff Blaine wrote:

I’ve opened “New Feature” ticket
http://tickets.opscode.com/browse/CHEF-4062 with no code yet.

Reason: Tired of cleaning up new cookbooks

Essence:

knife cookbook create foobar (works as normal, --type=full as default)

knife cookbook create foobar --type=minimal will give you only the
following:

  1. Same metadata.rb as ‘full’
  2. Same README as ‘full’
  3. Same CHANGELOG as ‘full’
  4. Same recipes/default.rb as ‘full’

Nothing else.

Oviously Opscode’s ultimate call, but I wanted to throw it out
here as well. Thoughts? Feel free to email me directly if you
prefer.


#9

On 4/4/2013 3:19 PM, Larry Wright wrote:

I’ve wanted this forever, and I would agree with Cassiano that making it
the default would be ideal.

I would make it so you could make it the default by
setting something in your knife.rb

I don’t want to change what’s been in place since 2009
(unless Opscode folks say go ahead and change the default).


Larry Wright

On Thursday, April 4, 2013 at 1:16 PM, Cassiano Leal wrote:

I’d probably add attributes/default.rb to the list, but it sure sounds
like a good idea.

I’d actually go as far as making this the default, or at least
configurable. It would save a lot of deleting after creating a new
cookbook. :slight_smile:

  • cassiano

On Thursday, April 4, 2013 at 15:08, Jeff Blaine wrote:

I’ve opened “New Feature” ticket
http://tickets.opscode.com/browse/CHEF-4062 with no code yet.

Reason: Tired of cleaning up new cookbooks

Essence:

knife cookbook create foobar (works as normal, --type=full as default)

knife cookbook create foobar --type=minimal will give you only the
following:

  1. Same metadata.rb as ‘full’
  2. Same README as ‘full’
  3. Same CHANGELOG as ‘full’
  4. Same recipes/default.rb as ‘full’

Nothing else.

Oviously Opscode’s ultimate call, but I wanted to throw it out
here as well. Thoughts? Feel free to email me directly if you
prefer.