Class: HerokuSchemas::Show
- Inherits:
-
SchemaCommand
- Object
- SchemaCommand
- HerokuSchemas::Show
- Defined in:
- lib/heroku-schemas/show.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
readonly
Returns the value of attribute database.
Instance Method Summary collapse
-
#initialize(options) ⇒ Show
constructor
A new instance of Show.
- #perform ⇒ Object
Methods inherited from SchemaCommand
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() super() @schema = HerokuSchemas::SchemaReference.new(heroku: @heroku, string_reference: @context_app, related_apps: [@context_app]) end |
Instance Attribute Details
#database ⇒ Object (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
#perform ⇒ Object
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 |