Module: Egads::CommonConfig
- Included in:
- Config, RemoteConfig
- Defined in:
- lib/egads/config.rb
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
4 5 6 |
# File 'lib/egads/config.rb', line 4 def config @config ||= YAML.load_file(config_path) end |
#s3_bucket ⇒ Object
8 9 10 11 12 |
# File 'lib/egads/config.rb', line 8 def s3_bucket return @bucket if @bucket fog = Fog::Storage::AWS.new(aws_access_key_id: config['s3']['access_key'], aws_secret_access_key: config['s3']['secret_key']) @bucket ||= fog.directories.new(key: config['s3']['bucket']) end |
#s3_prefix ⇒ Object
14 15 16 |
# File 'lib/egads/config.rb', line 14 def s3_prefix config['s3']['prefix'] end |