Class: Oncall::Commands::ShellCommand
- Inherits:
-
Object
- Object
- Oncall::Commands::ShellCommand
- Defined in:
- lib/oncall/commands/shell_command.rb
Class Method Summary collapse
Class Method Details
.invoke(args) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/oncall/commands/shell_command.rb', line 6 def self.invoke(args) while input = Readline.readline("> ", true) break if input == "exit" # Remove blank lines from history Readline::HISTORY.pop if input == "" system(input) end end |