Class: RunLoop::CLI::Codesign

Inherits:
Thor
  • Object
show all
Defined in:
lib/run_loop/cli/codesign.rb

Instance Method Summary collapse

Instance Method Details

#info(app_or_ipa) ⇒ Object


11
12
13
14
15
16
17
18
19
20
21
# File 'lib/run_loop/cli/codesign.rb', line 11

def info(app_or_ipa)
  extension = File.extname(app_or_ipa)

  if extension == ".app"
    puts RunLoop::App.new(app_or_ipa).codesign_info
  elsif extension == ".ipa"
    puts RunLoop::Ipa.new(app_or_ipa).codesign_info
  else
    puts RunLoop::Codesign.info(app_or_ipa)
  end
end