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