Class: Kpigen::KpigenRegistry

Inherits:
Eve::Registry
  • Object
show all
Defined in:
lib/registry/kpigen_registry.rb

Constant Summary collapse

@@message =
nil
@@cmd_data =
{
  "version" => []
}

Class Method Summary collapse

Class Method Details

.availableObject



11
12
13
# File 'lib/registry/kpigen_registry.rb', line 11

def self.available
  @@cmd_data
end

.call_version(app, result, external_name, display_messages) ⇒ Object


CALLER METHODS




19
20
21
22
23
# File 'lib/registry/kpigen_registry.rb', line 19

def self.call_version(app,result,external_name,display_messages)
  result[:data] = Kpigen::VERSION
  message(app).print_version if display_messages
  result
end

.message(app) ⇒ Object



26
27
28
29
# File 'lib/registry/kpigen_registry.rb', line 26

def self.message(app)
  @@message ||= Message.new(app)
  @@message
end