Class: Theine::Client

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.



13
14
15
16
17
18
19
20
21
22
# File 'lib/theine/client.rb', line 13

def initialize
  @config = ConfigReader.new(Dir.pwd)
  @argv = ARGV.dup
  begin
    connect_worker
    run_command
    attach_screen
    exit_prompt
  end
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



11
12
13
# File 'lib/theine/client.rb', line 11

def config
  @config
end

Class Method Details

.startObject



7
8
9
# File 'lib/theine/client.rb', line 7

def self.start
  new
end