Sha256: 9c77b97d669e01b5963d679497c801ac70e2b0fc32b74ce41f3240fdc6740e2c

Contents?: true

Size: 590 Bytes

Versions: 661

Compression:

Stored size: 590 Bytes

Contents

module Fastlane
  # Represents a command that is meant to signal the server to do something on the client's behalf
  # Examples are: :cancelFastlaneRune, and :done
  class ControlCommand
    attr_reader :command
    attr_reader :user_message
    attr_reader :reason

    def initialize(json: nil)
      @command = json['command'].to_sym
      @user_message = json['userMessage']
      @reason = json['reason'].to_sym if json['reason']
    end

    def cancel_signal?
      return @command == :cancelFastlaneRun
    end

    def done_signal?
      return @command == :done
    end
  end
end

Version data entries

661 entries across 661 versions & 5 rubygems

Version Path
fastlane-2.225.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.224.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.223.1 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.223.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.222.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.221.1 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.221.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.220.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.219.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.218.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-security-patched-2.216.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.217.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.216.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.215.1 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.215.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-mercafacil-2.214.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.214.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.213.0 fastlane/lib/fastlane/server/control_command.rb
fastlane-2.212.2 fastlane/lib/fastlane/server/control_command.rb
fastlane_pricing_fix-2.212.1 fastlane/lib/fastlane/server/control_command.rb