Sha256: fb4c42adf846b95fe57d48b693037f80074f4523c88e8f4e6057f9d9c4f8a815

Contents?: true

Size: 1.72 KB

Versions: 120

Compression:

Stored size: 1.72 KB

Contents

module Eco
  module API
    class Session
      class Config
        class S3Storage < BaseConfig

          def configured?
            required = bucket_name && prefix && access_key_id && secret_access_key && region
            !!required
          end

          def bucket_name=(value)
            self["bucket_name"] = value
          end

          def bucket_name
            self["bucket_name"]
          end

          def prefix=(value)
            self["prefix"] = value
          end

          def prefix
            self["prefix"]
          end

          def access_key_id=(key)
            self["access_key_id"] = key
          end

          def access_key_id
            self["access_key_id"]
          end

          def secret_access_key=(key)
            self["secret_access_key"] = key
          end

          def secret_access_key
            self["secret_access_key"]
          end

          def region=(region)
            self["region"] = region
          end

          def region
            self["region"]
          end

          def target_files=(value)
            self["target_files"]       = [value].flatten
          end

          def target_files
            self["target_files"]
          end

          def target_directories=(value)
            self["target_directories"] = [value].flatten
          end

          def target_directories
            self["target_directories"]
          end

          def target_file_patterns=(value)
            self["target_file_patterns"] = [value].flatten
          end

          def target_file_patterns
            self["target_file_patterns"]
          end

        end
      end
    end
  end
end

Version data entries

120 entries across 120 versions & 1 rubygems

Version Path
eco-helpers-2.1.12 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.1.11 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.1.10 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.1.9 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.1.8 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.1.7 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.1.6 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.1.5 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.1.4 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.1.3 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.1.2 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.1.1 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.0.68 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.0.67 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.0.66 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.0.65 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.0.64 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.0.63 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.0.62 lib/eco/api/session/config/s3_storage.rb
eco-helpers-2.0.61 lib/eco/api/session/config/s3_storage.rb