radosgw-s3 0.11 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ceph/user.rb +6 -0
- data/lib/s3/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 057436a3b4ccffaff85a5442bf959f5b4068eb2f
|
4
|
+
data.tar.gz: 5434e19747724fdfca36847ffc97ecf3846f2308
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1829e6d11ba9e24553855b46506806ff94203d55b5d80c860aef845a2400f5a38da9dce34a8a1f4fb3f9dea7f2a068c0a07cdf27c495f5e579abfe50053b3eb
|
7
|
+
data.tar.gz: e22e949dc06752862965ec03aca611384a871e4afab49495d2a0a42f1d3baacd566fd329f782320114f41b47cde63fd461696e2038bc194b7a58fb8b573e9956
|
data/lib/ceph/user.rb
CHANGED
@@ -32,6 +32,12 @@ module CEPH
|
|
32
32
|
def create(uid, display_name)
|
33
33
|
ceph_user_json = ""
|
34
34
|
ceph_user_json = execution("sudo radosgw-admin user create --uid='#{uid}' --display-name='#{display_name}'")
|
35
|
+
if ceph_user_json.include? ": (17) File exists"
|
36
|
+
puts "String includes '(17) File exists'"
|
37
|
+
ceph_user_json = ceph_user_json.gsub!(/.*?(?=exists)/im, "")
|
38
|
+
ceph_user_json = ceph_user_json.sub('exists', "")
|
39
|
+
end
|
40
|
+
|
35
41
|
begin
|
36
42
|
ceph_user_hash = JSON.parse(ceph_user_json)
|
37
43
|
secret_hash = {"access_key" => "#{ceph_user_hash['keys'][0]['access_key']}", "secret_key" => "#{ceph_user_hash['keys'][0]['secret_key']}" }
|
data/lib/s3/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radosgw-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0
|
4
|
+
version: '1.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Alrin, Kishorekumar Neelamegam, Rajthilak, Kuba Kuźma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: proxies
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: 1.3.6
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project: s3
|
168
|
-
rubygems_version: 2.
|
168
|
+
rubygems_version: 2.4.8
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Library for accessing ceph objects and buckets
|