execute

in lib/release_tools/auto_deploy/deployment_pipeline/service.rb [22:37]


        def execute
          return unless time_to_deploy?

          if strategy == :version && version.blank?
            raise ArgumentError, 'The version argument is required to be specified when using the "version" strategy'
          end

          product_version = product_version_to_deploy
          if product_version.nil?
            logger.warn('Could not find suitable version to deploy with the selected strategy', strategy: strategy)
            return
          end

          Trigger.new(product_version).execute
        end