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.129.0.beta.20190806200055 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190805200019 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190804200053 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190803200103 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190802200057 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190731200035 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190730200040 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190729200106 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190728200052 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190727200032 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190726200041 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.128.1 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190725200033 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.129.0.beta.20190723200012 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.128.0 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.128.0.beta.20190722200021 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.128.0.beta.20190721200024 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.128.0.beta.20190720200049 deliver/lib/deliver/upload_price_tier.rb
fastlane_iac_publish-0.1.5 deliver/lib/deliver/upload_price_tier.rb
fastlane-2.127.2 deliver/lib/deliver/upload_price_tier.rb