Class: Kpigen::Application
- Inherits:
-
Object
- Object
- Kpigen::Application
- Defined in:
- lib/kpigen/application.rb
Instance Attribute Summary collapse
-
#eve ⇒ Object
Returns the value of attribute eve.
Instance Method Summary collapse
- #cmd(raw, display_messages = true, external_cmd = false) ⇒ Object
-
#initialize(eve) ⇒ Application
constructor
A new instance of Application.
- #redis ⇒ Object
- #run(args) ⇒ Object
Constructor Details
#initialize(eve) ⇒ Application
Returns a new instance of Application.
7 8 9 |
# File 'lib/kpigen/application.rb', line 7 def initialize(eve) @eve = eve end |
Instance Attribute Details
#eve ⇒ Object
Returns the value of attribute eve.
5 6 7 |
# File 'lib/kpigen/application.rb', line 5 def eve @eve end |
Instance Method Details
#cmd(raw, display_messages = true, external_cmd = false) ⇒ Object
15 16 17 |
# File 'lib/kpigen/application.rb', line 15 def cmd(raw, = true,external_cmd = false) @eve.cmd(raw,,external_cmd) end |
#redis ⇒ Object
11 12 13 |
# File 'lib/kpigen/application.rb', line 11 def redis @eve.redis end |
#run(args) ⇒ Object
19 20 21 22 23 |
# File 'lib/kpigen/application.rb', line 19 def run(args) dir = File.dirname(__FILE__) kpigen_args = ["--register", "Eve::BaseRegistry", "--register", "Kpigen::KpigenRegistry", p("#{dir}/../registry/kpigen_registry.rb") ] @eve.run(args + kpigen_args) end |