Module: RSpec::RemoteFixtures::Config
- Defined in:
- lib/rspec/remote_fixtures/config.rb
Overview
Configuration namespace for RemoteFixtures
Defaults: ‘manifest_path`: `spec/fixtures.json` `fixture_path`: `spec/fixtures/` `backend`: `RSpec::RemoteFixtures::Backend::S3Backend` `backend_path`: None, must be configured `check_remote_fixture_path`: “:download“
Class Method Summary collapse
- .backend ⇒ Object
- .backend=(value) ⇒ Object
- .backend_path ⇒ Object
- .backend_path=(value) ⇒ Object
- .check_remote_fixture_digest ⇒ Object
- .check_remote_fixture_digest=(value) ⇒ Object
- .fixture_path ⇒ Object
- .fixture_path=(value) ⇒ Object
- .manifest_path ⇒ Object
- .manifest_path=(value) ⇒ Object
- .reset! ⇒ Object
- .s3_client ⇒ Object
- .s3_client=(value) ⇒ Object
Class Method Details
.backend ⇒ Object
38 39 40 |
# File 'lib/rspec/remote_fixtures/config.rb', line 38 def self.backend @backend || Backend::S3Backend end |
.backend=(value) ⇒ Object
34 35 36 |
# File 'lib/rspec/remote_fixtures/config.rb', line 34 def self.backend=(value) @backend = value end |
.backend_path ⇒ Object
46 47 48 |
# File 'lib/rspec/remote_fixtures/config.rb', line 46 def self.backend_path @backend_path end |
.backend_path=(value) ⇒ Object
42 43 44 |
# File 'lib/rspec/remote_fixtures/config.rb', line 42 def self.backend_path=(value) @backend_path = value end |
.check_remote_fixture_digest ⇒ Object
62 63 64 |
# File 'lib/rspec/remote_fixtures/config.rb', line 62 def self.check_remote_fixture_digest @check_remote_fixture_digest || :download end |
.check_remote_fixture_digest=(value) ⇒ Object
58 59 60 |
# File 'lib/rspec/remote_fixtures/config.rb', line 58 def self.check_remote_fixture_digest=(value) @check_remote_fixture_digest = value end |
.fixture_path ⇒ Object
30 31 32 |
# File 'lib/rspec/remote_fixtures/config.rb', line 30 def self.fixture_path @fixture_path ||= Pathname.new('spec/fixtures/') end |
.fixture_path=(value) ⇒ Object
25 26 27 28 |
# File 'lib/rspec/remote_fixtures/config.rb', line 25 def self.fixture_path=(value) value = Pathname.new(value) unless value.is_a? Pathname @fixture_path = value end |
.manifest_path ⇒ Object
21 22 23 |
# File 'lib/rspec/remote_fixtures/config.rb', line 21 def self.manifest_path @manifest_path || 'spec/fixtures.json' end |
.manifest_path=(value) ⇒ Object
17 18 19 |
# File 'lib/rspec/remote_fixtures/config.rb', line 17 def self.manifest_path=(value) @manifest_path = value end |
.reset! ⇒ Object
66 67 68 69 70 71 72 |
# File 'lib/rspec/remote_fixtures/config.rb', line 66 def self.reset! @backend_path = nil @check_remote_fixture_digest = nil @fixture_path = nil @backend = nil @manifest_path = nil end |
.s3_client ⇒ Object
50 51 52 |
# File 'lib/rspec/remote_fixtures/config.rb', line 50 def self.s3_client @s3_client ||= Aws::S3::Client.new end |
.s3_client=(value) ⇒ Object
54 55 56 |
# File 'lib/rspec/remote_fixtures/config.rb', line 54 def self.s3_client=(value) @s3_client = value end |