Sha256: 20edddedb3e52b4c83edd15cff34425ad03f36b14dcf53960eba2ebff7552b88

Contents?: true

Size: 359 Bytes

Versions: 18

Compression:

Stored size: 359 Bytes

Contents

require File.dirname(__FILE__) + "/../command_handler"
require File.dirname(__FILE__) + "/models/r_shell"

class ShellCommandHandler
  include CommandHandler
  
  def can_handle?(parent, command_symbol, *args, &block)
    command_symbol.to_s == "shell"
  end
  
  def do_handle(parent, command_symbol, *args, &block) 
    RShell.send(:new, *args)
  end
  
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
glimmer-0.3.2 lib/command_handlers/shell_command_handler.rb
glimmer-0.3.1 lib/command_handlers/shell_command_handler.rb
glimmer-0.2.5 lib/command_handlers/shell_command_handler.rb
glimmer-0.2.4 lib/command_handlers/shell_command_handler.rb
glimmer-0.2.3 lib/command_handlers/shell_command_handler.rb
glimmer-0.2.2 lib/command_handlers/shell_command_handler.rb
glimmer-0.2.1 lib/command_handlers/shell_command_handler.rb
glimmer-0.2.0 lib/command_handlers/shell_command_handler.rb
glimmer-0.1.11.SWT4.14 lib/command_handlers/shell_command_handler.rb
glimmer-0.1.11.470 lib/command_handlers/shell_command_handler.rb
glimmer-0.1.10.470 lib/command_handlers/shell_command_handler.rb
glimmer-0.1.9.470 lib/command_handlers/shell_command_handler.rb
glimmer-0.1.8.470 lib/command_handlers/shell_command_handler.rb
glimmer-0.1.5.470 lib/command_handlers/shell_command_handler.rb
glimmer-0.1.4.470 lib/command_handlers/shell_command_handler.rb
glimmer-0.1.4.swt.pre.4.7.0 lib/command_handlers/shell_command_handler.rb
glimmer-0.1.3 lib/command_handlers/shell_command_handler.rb
glimmer-0.1.2 lib/command_handlers/shell_command_handler.rb