class Fastlane::ActionCommand

Represents a command that is meant to execute an Action on the client's behalf

Attributes

args[R]
class_name[R]
command_id[R]
method_name[R]

Public Class Methods

new(json: nil) click to toggle source
# File fastlane/lib/fastlane/server/action_command.rb, line 34
def initialize(json: nil)
  @method_name = json['methodName']
  @class_name = json['className']
  @command_id = json['commandID']

  args_json = json['args'] ||= []
  @args = args_json.map do |arg|
    Argument.new(json: arg)
  end
end

Public Instance Methods

cancel_signal?() click to toggle source
# File fastlane/lib/fastlane/server/action_command.rb, line 45
def cancel_signal?
  return @command_id == "cancelFastlaneRun"
end
is_class_method_command() click to toggle source
# File fastlane/lib/fastlane/server/action_command.rb, line 57
def is_class_method_command
  return class_name.to_s.length > 0
end
target_class() click to toggle source
# File fastlane/lib/fastlane/server/action_command.rb, line 49
def target_class
  unless class_name
    return nil
  end

  return Fastlane::Actions.const_get(class_name)
end