Class: Eye::Controller
- Inherits:
-
Object
- Object
- Eye::Controller
- Includes:
- Celluloid, Commands, Helpers, Load, Options, SendCommand, ShowHistory, Status
- Defined in:
- lib/eye/controller.rb
Defined Under Namespace
Modules: Commands, Helpers, Load, Options, SendCommand, ShowHistory, Status
Instance Attribute Summary collapse
-
#applications ⇒ Object
readonly
Returns the value of attribute applications.
-
#current_config ⇒ Object
readonly
Returns the value of attribute current_config.
Instance Method Summary collapse
-
#initialize ⇒ Controller
constructor
A new instance of Controller.
- #logger_tag ⇒ Object
- #settings ⇒ Object
Methods included from Options
#set_opt_http, #set_opt_logger, #set_opt_logger_level
Methods included from ShowHistory
#history_data, #history_string
Methods included from SendCommand
#match, #send_command, #signal
Methods included from Status
#info_data, #info_string, #info_string_debug, #info_string_short
Methods included from Commands
Methods included from Helpers
#all_groups, #all_processes, #application_by_name, #cache_str, #group_by_name, #process_by_full_name, #process_by_name, #save_cache, #set_proc_line, #short_tree
Methods included from Load
Constructor Details
#initialize ⇒ Controller
Returns a new instance of Controller.
40 41 42 43 44 45 46 47 48 |
# File 'lib/eye/controller.rb', line 40 def initialize @applications = [] @current_config = Eye::Config.new Celluloid::logger = Eye::Logger.new('celluloid') Eye::SystemResources.setup info "starting #{Eye::ABOUT} (#{$$})" end |
Instance Attribute Details
#applications ⇒ Object (readonly)
Returns the value of attribute applications.
36 37 38 |
# File 'lib/eye/controller.rb', line 36 def applications @applications end |
#current_config ⇒ Object (readonly)
Returns the value of attribute current_config.
36 37 38 |
# File 'lib/eye/controller.rb', line 36 def current_config @current_config end |
Instance Method Details
#logger_tag ⇒ Object
54 55 56 |
# File 'lib/eye/controller.rb', line 54 def logger_tag 'Eye' end |
#settings ⇒ Object
50 51 52 |
# File 'lib/eye/controller.rb', line 50 def settings current_config.settings end |