Class: ICSP::Commands::License::View

Inherits:
BaseCommand show all
Defined in:
lib/commands/license/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

#cpconfigObject



7
8
9
# File 'lib/commands/license/view.rb', line 7

def cpconfig
  @cpconfig ||= @config.cpconfig
end

#executeObject



11
12
13
14
15
16
# File 'lib/commands/license/view.rb', line 11

def execute
  result = ::ICSP::Shell.new("#{cpconfig} -license -view").execute
  exit(result.exit_code) unless result.ok

  puts result
end