Class: Bauble::Resources::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/bauble/resources/resource.rb

Overview

Base resource

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#appObject

Returns the value of attribute app.



7
8
9
# File 'lib/bauble/resources/resource.rb', line 7

def app
  @app
end

Instance Method Details

#bundleObject



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

#synthesizeObject



14
15
16
# File 'lib/bauble/resources/resource.rb', line 14

def synthesize
  raise 'Not implemented'
end