Class: HerokuSchemas::Show

Inherits:
SchemaCommand show all
Defined in:
lib/heroku-schemas/show.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from SchemaCommand

#write

Constructor Details

#initialize(options) ⇒ Show

Returns a new instance of Show.



5
6
7
8
9
# File 'lib/heroku-schemas/show.rb', line 5

def initialize(options)
  super(options)

  @schema = HerokuSchemas::SchemaReference.new(heroku: @heroku, string_reference: @context_app, related_apps: [@context_app])
end

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



3
4
5
# File 'lib/heroku-schemas/show.rb', line 3

def database
  @database
end

Instance Method Details

#performObject



11
12
13
# File 'lib/heroku-schemas/show.rb', line 11

def perform
  write "Schema being used:\n#{@schema.database_app}:#{@schema.database_variable}:#{@schema.schema}"
end