Class: Dmux
- Inherits:
-
Object
- Object
- Dmux
- Defined in:
- lib/dmux.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Instance Method Summary collapse
-
#initialize(app) ⇒ Dmux
constructor
A new instance of Dmux.
- #run ⇒ Object
Constructor Details
#initialize(app) ⇒ Dmux
Returns a new instance of Dmux.
11 12 13 14 15 16 17 18 |
# File 'lib/dmux.rb', line 11 def initialize app @app = app.strip if @app.empty? $stderr.puts "USAGE: dmux <command>" exit 1 end end |
Instance Method Details
#run ⇒ Object
21 22 23 |
# File 'lib/dmux.rb', line 21 def run exists? && attach || create end |