Class: SweetStaging::CommandsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/sweet_staging/commands_controller.rb

Instance Method Summary collapse

Methods included from ApplicationHelper

#active?, #format_datetime, #icon, #insert_css_file, #insert_js_file

Instance Method Details

#callObject



7
8
9
10
# File 'app/controllers/sweet_staging/commands_controller.rb', line 7

def call
  item = SweetStaging.commands.detect {|e| e[:name] == params[:name]}
  @result, status = Open3.capture2e(item[:command])
end