Class: TorqueBox::RemoteConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/torquebox/remote_deploy_utils.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRemoteConfig

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

#hostnameObject

Returns the value of attribute hostname.



208
209
210
# File 'lib/torquebox/remote_deploy_utils.rb', line 208

def hostname
  @hostname
end

#keyObject

Returns the value of attribute key.



208
209
210
# File 'lib/torquebox/remote_deploy_utils.rb', line 208

def key
  @key
end

#localObject

Returns the value of attribute local.



208
209
210
# File 'lib/torquebox/remote_deploy_utils.rb', line 208

def local
  @local
end

#portObject

Returns the value of attribute port.



208
209
210
# File 'lib/torquebox/remote_deploy_utils.rb', line 208

def port
  @port
end

#sudoObject

Returns the value of attribute sudo.



208
209
210
# File 'lib/torquebox/remote_deploy_utils.rb', line 208

def sudo
  @sudo
end

#torquebox_homeObject

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

#userObject

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_homeObject



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