Class: CandyCheck::CLI::Commands::AppStore
- Defined in:
- lib/candy_check/cli/commands/app_store.rb
Overview
Command to verify an AppStore receipt token
Instance Method Summary collapse
-
#initialize(receipt, options) ⇒ AppStore
constructor
Prepare a verification run from the terminal.
-
#run ⇒ Object
Print the result of the verification to the terminal.
Methods inherited from Base
Constructor Details
#initialize(receipt, options) ⇒ AppStore
Prepare a verification run from the terminal
11 12 13 14 |
# File 'lib/candy_check/cli/commands/app_store.rb', line 11 def initialize(receipt, ) @receipt = receipt super() end |
Instance Method Details
#run ⇒ Object
Print the result of the verification to the terminal
17 18 19 20 21 22 |
# File 'lib/candy_check/cli/commands/app_store.rb', line 17 def run verifier = CandyCheck::AppStore::Verifier.new(config) result = verifier.verify(@receipt, [:secret]) out.print "#{result.class}:" out.pretty result end |