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.10.4 lib/itamae/generators.rb
itamae-1.10.3 lib/itamae/generators.rb
itamae-1.10.2 lib/itamae/generators.rb
itamae-1.10.1 lib/itamae/generators.rb
itamae-1.10.0 lib/itamae/generators.rb
itamae-1.9.13 lib/itamae/generators.rb
itamae-1.9.12 lib/itamae/generators.rb
itamae-1.9.11 lib/itamae/generators.rb
itamae-1.9.10 lib/itamae/generators.rb
itamae-1.9.9 lib/itamae/generators.rb
itamae-1.9.8 lib/itamae/generators.rb
itamae-1.9.7.pre lib/itamae/generators.rb
itamae-1.9.6 lib/itamae/generators.rb
itamae-1.9.6.pre lib/itamae/generators.rb
itamae-1.9.5 lib/itamae/generators.rb
itamae-1.9.4 lib/itamae/generators.rb
itamae-mitsurin-0.4 lib/itamae/generators.rb
itamae-mitsurin-0.3 lib/itamae/generators.rb
itamae-mitsurin-0.2 lib/itamae/generators.rb
itamae-mitsurin-0.1 lib/itamae/generators.rb