Class: Dumpman::Connection
- Inherits:
-
Object
- Object
- Dumpman::Connection
- Defined in:
- lib/dumpman/connection.rb
Instance Attribute Summary collapse
-
#app_env(val) ⇒ Object
Returns the value of attribute app_env.
-
#app_path(val) ⇒ Object
Returns the value of attribute app_path.
-
#docker_image(val) ⇒ Object
Returns the value of attribute docker_image.
-
#fetch_strategy(val) ⇒ Object
Returns the value of attribute fetch_strategy.
-
#name ⇒ Object
Returns the value of attribute name.
-
#ssh_cmd(val) ⇒ Object
Returns the value of attribute ssh_cmd.
-
#ssh_opts(val) ⇒ Object
Returns the value of attribute ssh_opts.
Instance Method Summary collapse
- #attrs ⇒ Object
-
#initialize(name) ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize(name) ⇒ Connection
Returns a new instance of 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 |
#docker_image(val) ⇒ Object
Returns the value of attribute docker_image.
3 4 5 |
# File 'lib/dumpman/connection.rb', line 3 def docker_image @docker_image end |
#fetch_strategy(val) ⇒ Object
Returns the value of attribute fetch_strategy.
3 4 5 |
# File 'lib/dumpman/connection.rb', line 3 def fetch_strategy @fetch_strategy end |
#name ⇒ Object
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
#attrs ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# 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, fetch_strategy: @fetch_strategy, docker_image: @docker_image, } end |