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.130.0.beta.20190826200016 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190825200030 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190824200021 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190823200017 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190822200101 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190821200034 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190820200024 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190819200109 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190818200034 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190817200018 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190816200015 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190815200057 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.130.0.beta.20190814200010 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190813200016 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190811200106 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190810200059 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190809200051 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190808200013 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190807200122 deliver/lib/deliver/upload_price_tier.rb