primary_attachment!()
click to toggle source
# File lib/heroku/helpers/heroku_postgresql.rb, line 28 def primary_attachment! @primary_attachment = true end
Object
# File lib/heroku/helpers/heroku_postgresql.rb, line 10 def initialize(raw) @raw = raw @app = raw['app']['name'] @name = raw['name'] || raw['config_var'].sub(/_URL\Z/, '') @config_var = raw['config_var'] @resource_name = raw['resource']['name'] @url = raw['resource']['value'] @addon, @plan = raw['resource']['type'].split(':') end
# File lib/heroku/helpers/heroku_postgresql.rb, line 24 def display_name config_var + (primary_attachment? ? " (DATABASE_URL)" : '') end
# File lib/heroku/helpers/heroku_postgresql.rb, line 28 def primary_attachment! @primary_attachment = true end
Generated with the Darkfish Rdoc Generator 2.