Module: Formatron::Generators::Util::Cookbook

Defined in:
lib/formatron/generators/util/cookbook.rb

Overview

generates placeholder cookbooks

Class Method Summary collapse

Class Method Details

.write(directory, name, description) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/formatron/generators/util/cookbook.rb', line 6

def self.write(directory, name, description)
  cookbook_directory = File.join(
    directory,
    'cookbooks',
    name
  )
   cookbook_directory, name
  _write_cookbook_readme cookbook_directory, name, description
  _write_cookbook_berksfile cookbook_directory
  _write_cookbook_recipe cookbook_directory
end