Class: MooTool::Commands::Activation

Inherits:
Thor
  • Object
show all
Defined in:
lib/mootool/commands/activation.rb

Overview

Commands for interacting with activation records (/System/Volumes/Hardware/MobileActivation)

Instance Method Summary collapse

Instance Method Details



10
11
12
13
14
15
16
17
18
# File 'lib/mootool/commands/activation.rb', line 10

def print(file)
  @data = if file.ends_with? 'request.txt'
            MooTool::Models::RemoteRequest.load(file)
          else
            MooTool::Models::RemoteResponse.load(file)
          end

  ap(@data)
end