Class: CloudfoundryBlueGreenDeploy::Route

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudfoundry_blue_green_deploy/route.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, domain, app) ⇒ Route

Returns a new instance of Route.



4
5
6
7
8
# File 'lib/cloudfoundry_blue_green_deploy/route.rb', line 4

def initialize(host, domain, app)
  @host = host
  @domain = domain
  @app = app == '' ? nil : app
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



3
4
5
# File 'lib/cloudfoundry_blue_green_deploy/route.rb', line 3

def app
  @app
end

#domainObject (readonly)

Returns the value of attribute domain.



3
4
5
# File 'lib/cloudfoundry_blue_green_deploy/route.rb', line 3

def domain
  @domain
end

#hostObject (readonly)

Returns the value of attribute host.



3
4
5
# File 'lib/cloudfoundry_blue_green_deploy/route.rb', line 3

def host
  @host
end