Class: Hako::Front
Direct Known Subclasses
Defined Under Namespace
Classes: S3Config
Constant Summary collapse
- DEFAULT_LINK =
['app:app'].freeze
Instance Attribute Summary collapse
-
#s3 ⇒ Object
readonly
Returns the value of attribute s3.
Attributes inherited from Container
Instance Method Summary collapse
- #env ⇒ Object
- #extra ⇒ Object
- #generate_config(_app_port) ⇒ Object
-
#initialize ⇒ Front
constructor
A new instance of Front.
- #links ⇒ Object
Methods inherited from Container
Constructor Details
Instance Attribute Details
#s3 ⇒ Object (readonly)
Returns the value of attribute s3.
22 23 24 |
# File 'lib/hako/front.rb', line 22 def s3 @s3 end |
Instance Method Details
#env ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/hako/front.rb', line 29 def env super.merge( 'AWS_DEFAULT_REGION' => @s3.region, 'S3_CONFIG_BUCKET' => @s3.bucket, 'S3_CONFIG_KEY' => @s3.key(@app.id), ) end |
#extra ⇒ Object
43 44 45 |
# File 'lib/hako/front.rb', line 43 def extra @definition.fetch('extra', {}) end |
#generate_config(_app_port) ⇒ Object
47 48 49 |
# File 'lib/hako/front.rb', line 47 def generate_config(_app_port) raise NotImplementedError end |
#links ⇒ Object
39 40 41 |
# File 'lib/hako/front.rb', line 39 def links DEFAULT_LINK + super end |