Sha256: fc4faab7674b6ff97aa06035fdc401e7e3b5763e9cc5dda2eb8bdbdd287801d2

Contents?: true

Size: 400 Bytes

Versions: 7

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

module Theme
  module Models
    module SpecificationHandlers
      class Theme
        REQUIRED_FOLDERS = %w(config layout sections templates)

        def initialize(root)
          @root = root
        end

        def valid?
          REQUIRED_FOLDERS.all? { |required_folder| Dir.exist?(File.join(@root, required_folder)) }
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shopify-cli-2.36.0 lib/project_types/theme/models/specification_handlers/theme.rb
shopify-cli-2.35.0 lib/project_types/theme/models/specification_handlers/theme.rb
shopify-cli-2.34.0 lib/project_types/theme/models/specification_handlers/theme.rb
shopify-cli-2.33.1 lib/project_types/theme/models/specification_handlers/theme.rb
shopify-cli-2.33.0 lib/project_types/theme/models/specification_handlers/theme.rb
shopify-cli-2.32.1 lib/project_types/theme/models/specification_handlers/theme.rb
shopify-cli-2.32.0 lib/project_types/theme/models/specification_handlers/theme.rb