INNER CODE UNIT · Ruby
current_production_rollout
wordpress-mobile/WordPress-Android · fastlane/lanes/promote.rb:583
def current_production_rollout(package_name:)
require 'supply'
require 'supply/options'
Supply.config = FastlaneCore::Configuration.create(
Supply::Options.available_options,
{ json_key: UPLOAD_TO_PLAY_STORE_JSON_KEY, package_name: package_name, track: PRODUCTION_TRACK }
)
release = with_play_edit_retries("Reading the production rollout for #{package_name}") do
client = Supply::Client.make_from_config
client.begin_edit(package_name: package_name)
begin
in_flight_release(client.tracks(PRODUCTION_TRACK).first)
ensure
# Always discard the throwaway edit, even if the read raises.
client.abort_current_edit
end