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.134.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.133.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190930200026 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190929200020 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190928200106 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190927200017 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190926200023 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190925200108 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190924200030 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190923200017 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190922200014 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190921200021 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190920200012 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190919200100 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190918200023 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190917200011 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190916200055 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190915200038 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.132.0.beta.20190914200034 deliver/lib/deliver/upload_price_tier.rb