Method: ICSP::Commands::Hardware::List#execute

Defined in:
lib/commands/hardware/list.rb

#executeObject



11
12
13
14
15
16
17
# File 'lib/commands/hardware/list.rb', line 11

def execute
  type = options[:type] || 'reader'
  result = ::ICSP::Shell.new("#{cpconfig} -hardware #{type} -view").execute
  exit(result.exit_code) unless result.ok

  puts result
end