Sha256: 492abb207ed1507666a9a66d74e67c05d993ad7bf513c62cc9497bc6da7a6172

Contents?: true

Size: 289 Bytes

Versions: 5

Compression:

Stored size: 289 Bytes

Contents

module HocusPocus
  module CommandLine
    class CommandLineController < ActionController::Base
      # XHR
      def execute
        #FIXME validate params
        `#{params[:command]}`
        flash.now[:notice] = "successfully executed: #{params[:command]}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hocus_pocus-0.4.1 engines/command_line/app/controllers/hocus_pocus/command_line/command_line_controller.rb
hocus_pocus-0.4.0 engines/command_line/app/controllers/hocus_pocus/command_line/command_line_controller.rb
hocus_pocus-0.3.0 engines/command_line/app/controllers/hocus_pocus/command_line/command_line_controller.rb
hocus_pocus-0.2.1 engines/command_line/app/controllers/hocus_pocus/command_line/command_line_controller.rb
hocus_pocus-0.2.0 engines/command_line/app/controllers/hocus_pocus/command_line/command_line_controller.rb