Class: CapistranoCloudfoundry::Target
- Inherits:
-
Object
- Object
- CapistranoCloudfoundry::Target
- Defined in:
- lib/capistrano-cloudfoundry/target.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, user, passwd) ⇒ Target
constructor
A new instance of Target.
Constructor Details
#initialize(url, user, passwd) ⇒ Target
Returns a new instance of Target.
6 7 8 9 10 11 12 13 |
# File 'lib/capistrano-cloudfoundry/target.rb', line 6 def initialize(url,user,passwd) @url = url #set up the client #vmc target `vmc target #{url}` #vmc login `vmc login --user #{user} --passwd #{passwd}` end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/capistrano-cloudfoundry/target.rb', line 5 def url @url end |