Class: BeamUp::Providers::Bunny::Config
- Inherits:
-
Object
- Object
- BeamUp::Providers::Bunny::Config
- Defined in:
- lib/beam_up/providers/bunny.rb
Instance Attribute Summary collapse
-
#region ⇒ Object
Returns the value of attribute region.
-
#storage_zone_name ⇒ Object
Returns the value of attribute storage_zone_name.
-
#storage_zone_password ⇒ Object
Returns the value of attribute storage_zone_password.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#region ⇒ Object
Returns the value of attribute region.
12 13 14 |
# File 'lib/beam_up/providers/bunny.rb', line 12 def region @region end |
#storage_zone_name ⇒ Object
Returns the value of attribute storage_zone_name.
12 13 14 |
# File 'lib/beam_up/providers/bunny.rb', line 12 def storage_zone_name @storage_zone_name end |
#storage_zone_password ⇒ Object
Returns the value of attribute storage_zone_password.
12 13 14 |
# File 'lib/beam_up/providers/bunny.rb', line 12 def storage_zone_password @storage_zone_password end |
Class Method Details
.config_keys ⇒ Object
10 |
# File 'lib/beam_up/providers/bunny.rb', line 10 def self.config_keys = %w[storage_zone_password storage_zone_name region] |
Instance Method Details
#validate! ⇒ Object
21 22 23 24 |
# File 'lib/beam_up/providers/bunny.rb', line 21 def validate! raise ConfigurationError, "Storage zone password must be set" unless storage_zone_password raise ConfigurationError, "Storage zone name must be set" unless storage_zone_name end |
#with(options) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/beam_up/providers/bunny.rb', line 14 def with() self.storage_zone_password = [:storage_zone_password] self.storage_zone_name = [:storage_zone_name] self.region = [:region] || "de" self end |