Sha256: 2b5d8f9f84db14c89166141168af61279f0d8b3693a6190d36ef44290adf97f9

Contents?: true

Size: 409 Bytes

Versions: 5

Compression:

Stored size: 409 Bytes

Contents

require "itamae-spec/generators/project"
require "itamae-spec/generators/cookbook"

module Itamae
  module Generators
    def self.find(target)
      case target
      when 'cookbook'
        Cookbook
      when 'project'
        Project
      when 'role'
        puts 'Not support generate role. Do nothing.'
        exit 1
      else
        raise "Unexpected target: #{target}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
itamae-spec-0.0.6 lib/itamae-spec/generators.rb
itamae-spec-0.0.5 lib/itamae-spec/generators.rb
itamae-spec-0.0.4 lib/itamae-spec/generators.rb
itamae-spec-0.0.3 lib/itamae-spec/generators.rb
itamae-spec-0.0.2 lib/itamae-spec/generators.rb