Module: Itamae::Generators

Defined in:
lib/itamae/generators.rb,
lib/itamae/generators/role.rb,
lib/itamae/generators/project.rb,
lib/itamae/generators/cookbook.rb

Defined Under Namespace

Classes: Cookbook, Project, Role

Class Method Summary collapse

Class Method Details

.find(target) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/itamae/generators.rb', line 7

def self.find(target)
  case target
  when 'cookbook'
    Cookbook
  when 'project'
    Project
  when 'role'
    Role
  else
    raise "Unexpected target: #{target}"
  end
end