class Fastlane::Actions::GsGetAppStatusAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/gs_deliver/actions/gs_get_app_status.rb, line 35 def self.available_options [ FastlaneCore::ConfigItem.new(key: :app_identifier, env_name: "BUNDLE_ID", description: "A description of your option", optional: false, type: String) ] end
description()
click to toggle source
# File lib/fastlane/plugin/gs_deliver/actions/gs_get_app_status.rb, line 18 def self.description "Gradoservice plugin to rule apps releases" end
details()
click to toggle source
# File lib/fastlane/plugin/gs_deliver/actions/gs_get_app_status.rb, line 30 def self.details # Optional: "Gradoservice plugin to rule apps releases for our scheme" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/gs_deliver/actions/gs_get_app_status.rb, line 45 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_deliver/actions/gs_get_app_status.rb, line 26 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_deliver/actions/gs_get_app_status.rb, line 5 def self.run(params) Spaceship::Tunes.login() team_id = ENV["ITC_TEAM_ID"] if not team_id.nil? Spaceship::Tunes.client.team_id = team_id end UI.message("Try to find app with identifier = " + params[:app_identifier]) app = Spaceship::Tunes::Application.find(params[:app_identifier]) status = app.latest_version().app_status UI.message("App status = " + status) return app.latest_version().app_status end