Class: Dumpman::Connection

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Connection



5
6
7
# File 'lib/dumpman/connection.rb', line 5

def initialize(name)
  @name = name
end

Instance Attribute Details

#app_env(val) ⇒ Object

Returns the value of attribute app_env.



3
4
5
# File 'lib/dumpman/connection.rb', line 3

def app_env
  @app_env
end

#app_path(val) ⇒ Object

Returns the value of attribute app_path.



3
4
5
# File 'lib/dumpman/connection.rb', line 3

def app_path
  @app_path
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/dumpman/connection.rb', line 3

def name
  @name
end

#ssh_cmd(val) ⇒ Object

Returns the value of attribute ssh_cmd.



3
4
5
# File 'lib/dumpman/connection.rb', line 3

def ssh_cmd
  @ssh_cmd
end

#ssh_opts(val) ⇒ Object

Returns the value of attribute ssh_opts.



3
4
5
# File 'lib/dumpman/connection.rb', line 3

def ssh_opts
  @ssh_opts
end

Instance Method Details

#attrsObject



9
10
11
12
13
14
15
16
# File 'lib/dumpman/connection.rb', line 9

def attrs
  {
    app_env: @app_env,
    ssh_cmd: @ssh_cmd,
    ssh_opts: @ssh_opts,
    app_path: @app_path,
  }
end