class Fastlane::Actions::GsAfterAllAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/gs_project_flow_ios/actions/gs_after_all_action.rb, line 45
def self.authors
  ["Сергей Веселовский"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/gs_project_flow_ios/actions/gs_after_all_action.rb, line 58
def self.available_options
  [
      FastlaneCore::ConfigItem.new(key: :lane,
                                   description: "A description of your option",
                                   optional: false,
                                   type: Symbol)
  ]
end
description() click to toggle source
# File lib/fastlane/plugin/gs_project_flow_ios/actions/gs_after_all_action.rb, line 41
def self.description
  "Plugin contains project flow code for code sharing between projects"
end
details() click to toggle source
# File lib/fastlane/plugin/gs_project_flow_ios/actions/gs_after_all_action.rb, line 53
def self.details
  # Optional:
  "Plugin contains project flow code for code sharing between GradoService projects"
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/gs_project_flow_ios/actions/gs_after_all_action.rb, line 67
def self.is_supported?(platform)
  # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
  # See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
  #
  # [:ios, :mac, :android].include?(platform)
  true
end
return_value() click to toggle source
# File lib/fastlane/plugin/gs_project_flow_ios/actions/gs_after_all_action.rb, line 49
def self.return_value
  # If your method provides a return value, you can describe here what it does
end
run(params) click to toggle source
# File lib/fastlane/plugin/gs_project_flow_ios/actions/gs_after_all_action.rb, line 4
def self.run(params)
  version_name, v = Helper::GsProjectFlowIosHelper.version_for_lane(params[:lane],Helper::GsProjectFlowIosHelper::BuildState::SUCCESS)
  message = ENV["PROJECT_NAME"] + " " + version_name + "<pre> build successful.</pre>"
  Helper::GsProjectFlowIosHelper.send_report(message,Helper::GsProjectFlowIosHelper::BuildState::SUCCESS,params[:lane])
  cmd = ""
  options = {}
  if params[:lane] == :beta
    cmd = "beta"
    options = {cmd:cmd,
               displayVersionName:version_name,
               request: "cmd",
               alias: ENV["ALIAS"]
    }
  elsif params[:lane] == :rc
    cmd = "rc"
    options = {
        cmd: cmd,
        displayVersionName: version_name,
        buildNumber: v.build,
        request: "cmd",
        alias: ENV["ALIAS"]
    }
  elsif params[:lane] == :release
    cmd = "rc2release"
    options = {cmd:cmd,
               displayVersionName:version_name,
               buildNumber:v.build,
               request: "cmd",
               alias: ENV["ALIAS"]
    }

  end
  if cmd != ""
    Actions::GsExecuteCommandAction.run(FastlaneCore::Configuration.create(GsExecuteCommandAction.available_options,options))
  end
end