INNER CODE UNIT · Ruby

states

wordpress-mobile/WordPress-Android · fastlane/lanes/promote.rb:273

    states = %i[wordpress jetpack].to_h do |app|
      [app, current_production_rollout(package_name: APP_SPECIFIC_VALUES[app][:package_name])]
    end
    UI.message("Production rollout states: #{states.inspect}")

    # Both apps promote together, so they must be in the same rollout state. A mismatch means a prior
    # step only half-applied, or one app's rollout was paused/changed — stop and reconcile by hand.
    unless rollout_signature(states[:wordpress]) == rollout_signature(states[:jetpack])
      UI.user_error!(
        'WordPress and Jetpack production rollouts differ ' \
        "(WP=#{states[:wordpress].inspect}, JP=#{states[:jetpack].inspect}); reconcile by hand."
      )
    end

    # Both apps share this state now; act on either.
    state = states[:wordpress]

    if state.nil?

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…