static_sync 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/static_sync/config.rb +10 -5
- data/lib/static_sync/version.rb +1 -1
- data/lib/static_sync.rb +2 -2
- metadata +1 -1
data/lib/static_sync/config.rb
CHANGED
@@ -12,19 +12,24 @@ module StaticSync
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def source
|
15
|
-
self
|
15
|
+
self.fetch('local', {})['directory']
|
16
|
+
end
|
17
|
+
|
18
|
+
def remote
|
19
|
+
self.fetch('remote', {})
|
16
20
|
end
|
17
21
|
|
18
22
|
def storage
|
19
23
|
Fog::Storage.new({
|
20
|
-
:provider => self
|
21
|
-
:
|
22
|
-
:
|
24
|
+
:provider => self.remote['provider'],
|
25
|
+
:region => self.remote['region'],
|
26
|
+
:aws_access_key_id => self.remote['username'],
|
27
|
+
:aws_secret_access_key => self.remote['password']
|
23
28
|
})
|
24
29
|
end
|
25
30
|
|
26
31
|
def storage_directory
|
27
|
-
self
|
32
|
+
self.remote['directory']
|
28
33
|
end
|
29
34
|
|
30
35
|
def gzip
|
data/lib/static_sync/version.rb
CHANGED
data/lib/static_sync.rb
CHANGED