Class: Bauble::Resources::Resource
- Inherits:
-
Object
- Object
- Bauble::Resources::Resource
- Defined in:
- lib/bauble/resources/resource.rb
Overview
Base resource
Direct Known Subclasses
ApiGatewayV2, EventBridgeRule, GemLayer, LambdaRole, PostgresLayer, RubyFunction, S3Bucket, SQSQueue
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
Instance Method Summary collapse
- #bundle ⇒ Object
-
#initialize(app) ⇒ Resource
constructor
A new instance of Resource.
- #resource_name(base_name) ⇒ Object
- #synthesize ⇒ Object
Constructor Details
#initialize(app) ⇒ Resource
Returns a new instance of Resource.
9 10 11 12 |
# File 'lib/bauble/resources/resource.rb', line 9 def initialize(app) @app = app app.add_resource(self) end |
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app.
7 8 9 |
# File 'lib/bauble/resources/resource.rb', line 7 def app @app end |
Instance Method Details
#bundle ⇒ Object
18 19 20 |
# File 'lib/bauble/resources/resource.rb', line 18 def bundle raise 'Not implemented' end |
#resource_name(base_name) ⇒ Object
22 23 24 |
# File 'lib/bauble/resources/resource.rb', line 22 def resource_name(base_name) "#{app.name}-#{base_name}-#{app.current_stack.name}" end |
#synthesize ⇒ Object
14 15 16 |
# File 'lib/bauble/resources/resource.rb', line 14 def synthesize raise 'Not implemented' end |