Sha256: e300623fb01f4fdfdf3a4e15953dff5abdbe551a2bc1c2467c9e94c02257b683

Contents?: true

Size: 666 Bytes

Versions: 534

Compression:

Stored size: 666 Bytes

Contents

require_relative 'module'

module Deliver
  # Set the app's pricing
  class UploadPriceTier
    def upload(options)
      return unless options[:price_tier]
      app = options[:app]

      # just to be sure, the user might have passed an int (which is fine with us)
      options[:price_tier] = options[:price_tier].to_s

      old_price = app.price_tier
      if options[:price_tier] == old_price
        UI.success("Price Tier unchanged (tier #{options[:price_tier]})")
        return
      end

      app.update_price_tier!(options[:price_tier])
      UI.success("Successfully updated the pricing from #{old_price} to #{options[:price_tier]}")
    end
  end
end

Version data entries

534 entries across 534 versions & 2 rubygems

Version Path
fastlane-2.149.1 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.149.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.148.1 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.148.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.147.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.146.1 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.146.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.145.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.144.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.143.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.142.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.141.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.140.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.139.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.138.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.137.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.136.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.135.2 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.135.1 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.135.0 deliver/lib/deliver/upload_price_tier.rb