Permalink
Browse files

wonk

  • Loading branch information...
1 parent 4a4ab42 commit 9d41c6b77d2694c7fa129ebd86aaf1a8a175344d tailor committed Apr 17, 2008
Showing with 1 addition and 34 deletions.
  1. +0 −32 lib/live_console/io_methods/fifo_io.rb
  2. +1 −2 lib/live_console/io_methods/socket_io.rb
@@ -1,32 +0,0 @@
-class LiveConsole::IOMethods::FifoIO
- DefaultOpts = {
- :remove? => false, # If the file exists, should we remove it?
- :user => nil, # User to give file ownership to
- :mode => 0600, # The file's mode
- }.freeze
- RequiredOpts = DefaultOpts.keys + [:filename]
-
- def start
- maybe_remove!
- if check_file
- make_fifo
- else
- raise Errno::EEXIST, "File exists; either remove it or pass " \
- ":remove? => true to LiveConsole.new."
- end
- end
-
- include LiveConsole::IOMethods::IOMethod
- private
-
- def maybe_remove!
- if !check_file && remove?
- File.unlink(filename)
- end
- end
-
- # Returns true if we can create the file.
- def check_file
- !File.exist?(filename)
- end
-end
@@ -1,7 +1,6 @@
class LiveConsole::IOMethods::SocketIO
-
DefaultOpts = {
- :host => '127.0.0.1'
+ :host => '127.0.0.1',
}.freeze
RequiredOpts = DefaultOpts.keys + [:port]

0 comments on commit 9d41c6b

Please sign in to comment.