Class: ICSP::Commands::Certificate::View

Inherits:
BaseCommand show all
Defined in:
lib/commands/certificate/view.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#arguments, #config, #options, #prompt

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize

Constructor Details

This class inherits a constructor from ICSP::Commands::BaseCommand

Instance Method Details

#executeObject



7
8
9
10
11
12
# File 'lib/commands/certificate/view.rb', line 7

def execute
  result = ::ICSP::Shell.new("openssl x509 -in #{arguments.first} -text -noout -nameopt multiline,-esc_msb,utf8").execute
  exit(result.exit_code) unless result.ok

  puts result
end