Class: Eclix::Remote
- Inherits:
-
Object
- Object
- Eclix::Remote
- Defined in:
- lib/eclix/sync.rb
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(name, host, port, credentials) ⇒ Remote
constructor
A new instance of Remote.
- #password ⇒ Object
- #publication_dir(publication_name) ⇒ Object
- #user ⇒ Object
Constructor Details
#initialize(name, host, port, credentials) ⇒ Remote
Returns a new instance of Remote.
14 15 16 17 18 19 |
# File 'lib/eclix/sync.rb', line 14 def initialize(name, host, port, credentials) @name = name @host = host @port = port @credentials = credentials end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
13 14 15 |
# File 'lib/eclix/sync.rb', line 13 def credentials @credentials end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
13 14 15 |
# File 'lib/eclix/sync.rb', line 13 def host @host end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/eclix/sync.rb', line 13 def name @name end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
13 14 15 |
# File 'lib/eclix/sync.rb', line 13 def port @port end |
Instance Method Details
#password ⇒ Object
21 22 23 |
# File 'lib/eclix/sync.rb', line 21 def password credentials.password end |
#publication_dir(publication_name) ⇒ Object
29 30 31 |
# File 'lib/eclix/sync.rb', line 29 def publication_dir(publication_name) "/opt/tomcat-#{name}/webapps-#{publication_name}/#{publication_name}/" end |
#user ⇒ Object
25 26 27 |
# File 'lib/eclix/sync.rb', line 25 def user credentials.user end |