Sha256: ac29e63a9336a899c9d7b6faed54740443d9556e809bc7e6ee0788d4109a7ee8
Contents?: true
Size: 639 Bytes
Versions: 483
Compression:
Stored size: 639 Bytes
Contents
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
483 entries across 483 versions & 2 rubygems