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.132.0.beta.20190913200058 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190912200052 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190911200010 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190910200104 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190909200058 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190908200041 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190907200030 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190906200026 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190905200113 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190904200040 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190903200013 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190902200022 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190901200035 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190831200041 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.131.0.beta.20190830200038 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190829200051 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190828200015 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190827200051 deliver/lib/deliver/upload_price_tier.rb