class Fastlane::ControlCommand

Represents a command that is meant to signal the server to do something on the client's behalf Examples are: :cancelFastlaneRune, and :done

Attributes

command[R]
reason[R]
user_message[R]

Public Class Methods

new(json: nil) click to toggle source
# File fastlane/lib/fastlane/server/control_command.rb, line 9
def initialize(json: nil)
  @command = json['command'].to_sym
  @user_message = json['userMessage']
  @reason = json['reason'].to_sym if json['reason']
end

Public Instance Methods

cancel_signal?() click to toggle source
# File fastlane/lib/fastlane/server/control_command.rb, line 15
def cancel_signal?
  return @command == :cancelFastlaneRun
end
done_signal?() click to toggle source
# File fastlane/lib/fastlane/server/control_command.rb, line 19
def done_signal?
  return @command == :done
end