Sha256: 82b97eaa1ef5357f06c128be8909f8a91d4e4afa55acc6ae01de190bddae781d

Contents?: true

Size: 376 Bytes

Versions: 45

Compression:

Stored size: 376 Bytes

Contents

require "itamae/generators/cookbook"
require "itamae/generators/project"
require "itamae/generators/role"

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

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
itamae-1.14.1 lib/itamae/generators.rb
itamae-1.14.0 lib/itamae/generators.rb
itamae-1.13.1 lib/itamae/generators.rb
itamae-1.13.0 lib/itamae/generators.rb
itamae-1.12.6 lib/itamae/generators.rb
itamae-1.12.5 lib/itamae/generators.rb
itamae-1.12.4 lib/itamae/generators.rb
itamae-1.12.3 lib/itamae/generators.rb
itamae-1.12.2 lib/itamae/generators.rb
itamae-1.12.1 lib/itamae/generators.rb
itamae-1.12.0 lib/itamae/generators.rb
itamae-1.11.2 lib/itamae/generators.rb
itamae-1.11.1 lib/itamae/generators.rb
itamae-1.11.0 lib/itamae/generators.rb
itamae-1.10.10 lib/itamae/generators.rb
itamae-1.10.9 lib/itamae/generators.rb
itamae-1.10.8 lib/itamae/generators.rb
itamae-1.10.7 lib/itamae/generators.rb
itamae-1.10.6 lib/itamae/generators.rb
itamae-1.10.5 lib/itamae/generators.rb