Class: LogsExplorer::CommandsController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- LogsExplorer::CommandsController
- Defined in:
- app/controllers/logs_explorer/commands_controller.rb
Instance Method Summary collapse
Methods included from ApplicationHelper
#active?, #format_datetime, #icon, #insert_css_file, #insert_js_file
Instance Method Details
#call ⇒ Object
9 10 11 12 |
# File 'app/controllers/logs_explorer/commands_controller.rb', line 9 def call item = LogsExplorer.commands.detect {|e| e[:name] == params[:name]} @result, status = Open3.capture2e(item[:command]) end |