Sha256: 9381374fda2601fe9fa53c00177bf26c6954714e056b4a7ed641be83147ac915

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

require "itamae/mitsurin/creators/cookbook"
require "itamae/mitsurin/creators/project"

module Itamae
  module Mitsurin
    module Creators
      def self.find(target)
        case target
        when 'cookbook'
          Cookbook
        when 'project'
          Project
        else
          raise "unexpected target: #{target}"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
itamae-mitsurin-0.4 lib/itamae/mitsurin/creators.rb
itamae-mitsurin-0.3 lib/itamae/mitsurin/creators.rb
itamae-mitsurin-0.2 lib/itamae/mitsurin/creators.rb
itamae-mitsurin-0.1 lib/itamae/mitsurin/creators.rb