5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

knife create cookbook する時にちょっとした便利なオプション

Last updated at Posted at 2014-12-03

Cookbookのひな形を作成するときに、knie cookbook createコマンドが便利ですが、作成する度にmetadata.rbやレシピ(default.rb)のemailやcopyrightを上書きするのが面倒でした。

そんなときは--copyright--emailオプションを指定すると幸せになれます。

$ knife cookbook create test_cookbook --copyright "Foo company" --email "Bar <bar@gmail.com>" -o site-cookbooks
  • -C(--copyright)オプションで、metadata.rbmaintainerやレシピ(default.rb)のCopyrightを置換してくれます
  • -m(--email)オプションでmetadata.rbmaintainer_emailを置換してくれます
  • -o(--cookbook-path)オプションでCookbookのひな形を作成するパスを指定できます

その他のオプションは--helpオプションか、ドキュメントから確認できます。

$ knife cookbook create --help

knife cookbook — Chef Docs

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?