Sha256: d4b2f1f180b27cc6838993fda6ec0ffe67420d86202c460a6f332fa171b67423
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
# frozen_string_literal: true module Script module Layers module Domain class ScriptProject include SmartProperties UUID_ENV_KEY = "UUID" property! :id, accepts: String property :env, accepts: ShopifyCLI::Resources::EnvFile property! :extension_point_type, accepts: String property! :script_name, accepts: String property! :language, accepts: String property :script_json, accepts: ScriptJson def initialize(*) super ShopifyCLI::Core::Monorail.metadata = { "script_name" => script_name, "extension_point_type" => extension_point_type, "language" => language, } end def api_key env&.api_key end def api_secret env&.secret end def uuid uuid_defined? && !raw_uuid.empty? ? raw_uuid : nil end def uuid_defined? !raw_uuid.nil? end def env_valid? api_key && api_secret && uuid_defined? end private def raw_uuid env&.extra&.[](UUID_ENV_KEY) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopify-cli-2.7.2 | lib/project_types/script/layers/domain/script_project.rb |