Module: Breeze::FogWrapper
- Defined in:
- lib/breeze/fog_wrapper.rb
Overview
The fog wrapper makes it possible for subsequent shell commands to share the same fog mock session. If Fog.mocking? is true, the mock data is read from and written to a yaml file.
Defined Under Namespace
Classes: AbstractConnectionWrapper, Compute, DNS, ELB, Elasticache, RDS
Class Method Summary collapse
Class Method Details
.connection(type) ⇒ Object
9 10 11 |
# File 'lib/breeze/fog_wrapper.rb', line 9 def self.connection(type) {compute: Compute, dns: DNS, rds: RDS, elasticache: Elasticache, elb: ELB}[type].get_connection end |
.flush_mock_data! ⇒ Object
13 14 15 16 17 |
# File 'lib/breeze/fog_wrapper.rb', line 13 def self.flush_mock_data! Compute.new.flush_data! DNS.new.flush_data! # RDS.new.flush_data! end |