Class: Dmux

Inherits:
Object
  • Object
show all
Defined in:
lib/dmux.rb

Constant Summary collapse

VERSION =
"0.0.1"

Instance Method Summary collapse

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

#runObject



21
22
23
# File 'lib/dmux.rb', line 21

def run
  exists? && attach || create
end