Class: CapistranoCloudfoundry::Target

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano-cloudfoundry/target.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/capistrano-cloudfoundry/target.rb', line 5

def url
  @url
end