Class: TorqueBox::RemoteConfig
- Inherits:
-
Object
- Object
- TorqueBox::RemoteConfig
- Defined in:
- lib/torquebox/remote_deploy_utils.rb
Instance Attribute Summary collapse
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#key ⇒ Object
Returns the value of attribute key.
-
#local ⇒ Object
Returns the value of attribute local.
-
#port ⇒ Object
Returns the value of attribute port.
-
#sudo ⇒ Object
Returns the value of attribute sudo.
-
#torquebox_home ⇒ Object
Returns the value of attribute torquebox_home.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize ⇒ RemoteConfig
constructor
A new instance of RemoteConfig.
- #jboss_home ⇒ Object
- #jboss_home=(jbh) ⇒ Object
Constructor Details
#initialize ⇒ RemoteConfig
Returns a new instance of RemoteConfig.
218 219 220 221 222 223 |
# File 'lib/torquebox/remote_deploy_utils.rb', line 218 def initialize @user = "torquebox" @torquebox_home = "/opt/torquebox" @sudo = false @local = false end |
Instance Attribute Details
#hostname ⇒ Object
Returns the value of attribute hostname.
208 209 210 |
# File 'lib/torquebox/remote_deploy_utils.rb', line 208 def hostname @hostname end |
#key ⇒ Object
Returns the value of attribute key.
208 209 210 |
# File 'lib/torquebox/remote_deploy_utils.rb', line 208 def key @key end |
#local ⇒ Object
Returns the value of attribute local.
208 209 210 |
# File 'lib/torquebox/remote_deploy_utils.rb', line 208 def local @local end |
#port ⇒ Object
Returns the value of attribute port.
208 209 210 |
# File 'lib/torquebox/remote_deploy_utils.rb', line 208 def port @port end |
#sudo ⇒ Object
Returns the value of attribute sudo.
208 209 210 |
# File 'lib/torquebox/remote_deploy_utils.rb', line 208 def sudo @sudo end |
#torquebox_home ⇒ Object
Returns the value of attribute torquebox_home.
208 209 210 |
# File 'lib/torquebox/remote_deploy_utils.rb', line 208 def torquebox_home @torquebox_home end |
#user ⇒ Object
Returns the value of attribute user.
208 209 210 |
# File 'lib/torquebox/remote_deploy_utils.rb', line 208 def user @user end |
Instance Method Details
#jboss_home ⇒ Object
214 215 216 |
# File 'lib/torquebox/remote_deploy_utils.rb', line 214 def jboss_home @jboss_home || "#{@torquebox_home}/jboss" end |
#jboss_home=(jbh) ⇒ Object
210 211 212 |
# File 'lib/torquebox/remote_deploy_utils.rb', line 210 def jboss_home=(jbh) @jboss_home = jbh end |