Top Level Namespace
Defined Under Namespace
Modules: MyKeyboardHandler, Subduino
Constant Summary
collapse
- LastRun =
{:all => 0}
- AppConfig =
{ "log_interval" => 30, "bauds" => 57600 }
- W =
ARGV.join.empty? ? "TEST" : ARGV.join
Instance Method Summary
collapse
Instance Method Details
#halt! ⇒ Object
10
11
12
13
14
15
|
# File 'bin/subduino-cli', line 10
def halt!
puts "Closing server"
@redis.quit
puts "..."
exit
end
|
#readline_with_hist_management ⇒ Object
32
33
34
35
36
37
38
39
|
# File 'bin/subduino-cli', line 32
def readline_with_hist_management
line = Readline.readline('> ', true)
return nil if line.nil?
if line =~ /^\s*$/ or Readline::HISTORY.to_a[-2] == line
Readline::HISTORY.pop
end
line
end
|