s3rbsync 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/s3rbsync/command.rb +2 -0
- data/lib/s3rbsync/synchronizer.rb +1 -1
- data/lib/s3rbsync/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7c479d419b88684f2a36e7237498c7c3ad88f0c
|
4
|
+
data.tar.gz: 301c5597b910dc539d2dcffad843cd6758240183
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cd6ac425b6fee4fcd9234dac43c2c566ae4c96b312ea7df6af7f5e1064ef291c3362469464b94bfc959620f971545059bc99777319fe00bab9d5fb54114e1ba
|
7
|
+
data.tar.gz: 5720000d2715c4f92482ac03bdf469b5e3c59263e51328b65fb47b38b89114e3e8a4b4d5ab260ac112cc822354910ed4516b4e90cfdff5f1289aded307c18cbd
|
data/lib/s3rbsync/command.rb
CHANGED
@@ -9,11 +9,13 @@ module S3rbsync
|
|
9
9
|
if yes? "Do you wish to continue [yes(y) / no(n)] ?", :cyan
|
10
10
|
access_key = ask("aws_access_key:")
|
11
11
|
secret_key = ask("aws_secret_access_key:")
|
12
|
+
region = ask("regin:")
|
12
13
|
bucket_name = ask("bucket_name:")
|
13
14
|
create_file "~/.aws.yml" do
|
14
15
|
<<-"YAML"
|
15
16
|
:aws_access_key: #{access_key}
|
16
17
|
:aws_secret_access_key: #{secret_key}
|
18
|
+
:regin: #{region}
|
17
19
|
:bucket_name: #{bucket_name}
|
18
20
|
YAML
|
19
21
|
end
|
@@ -8,7 +8,7 @@ module S3rbsync
|
|
8
8
|
@s3= Fog::Storage.new(:provider => 'AWS',
|
9
9
|
:aws_access_key_id => @configure.access_key,
|
10
10
|
:aws_secret_access_key => @configure.secret_key,
|
11
|
-
:region => 'ap-northeast-1',
|
11
|
+
:region => (@configure.region || 'ap-northeast-1'),
|
12
12
|
:persistent => false )
|
13
13
|
end
|
14
14
|
|
data/lib/s3rbsync/version.rb
CHANGED