Class: Ellipses::Client::Commands::Include

Inherits:
Ellipses::Client::Command show all
Defined in:
lib/ellipses/client/commands/include.rb

Constant Summary

Constants inherited from Ellipses::Client::Command

Ellipses::Client::Command::Error

Instance Attribute Summary

Attributes inherited from Ellipses::Client::Command

#argv, #server

Instance Method Summary collapse

Methods inherited from Ellipses::Client::Command

#error, #initialize, #to_s

Methods included from Ellipses::Client::Command::DSL

#command

Constructor Details

This class inherits a constructor from Ellipses::Client::Command

Instance Method Details

#callObject



16
17
18
# File 'lib/ellipses/client/commands/include.rb', line 16

def call(*)
  server.dump(uri: param.uri, symbols: param.symbols, port: param.port)
end

#setupObject



9
10
11
12
13
14
# File 'lib/ellipses/client/commands/include.rb', line 9

def setup
  source, *param.symbols = argv
  param.uri, param.port = source.split(':')

  server.available!(param.uri)
end