backup2sndacs 3.3.1 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +81 -5
- data/NEWS.md +5 -0
- data/backup2sndacs.gemspec +1 -1
- data/lib/backup/storage/sndacs.rb +7 -7
- data/lib/backup2sndacs/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d31ca2a823e51371341da5674d8fed58d6e5c7db
|
4
|
+
data.tar.gz: a25c0703574458a37810a933f3f44a9131af272d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ccfb80e1e9be9ef5f57a3e247a9ff0d5fe3e11ce2a1badb7d3d91feecc85ad751c534c9c1d569ea95ff46118828c6d34137d82bc3444bfd5aca88a68fea6934
|
7
|
+
data.tar.gz: 155f91c07f2cf9b00d61d01efcd79ecfe7b8423bc2733c694877682781e2ebd8e1a7616c716047bfee55d28a8bc13ed3eac8a2cb00b4da9dcc3fc28c22b51c07
|
data/Gemfile.lock
CHANGED
@@ -1,23 +1,99 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
backup2sndacs (3.
|
5
|
-
backup (
|
4
|
+
backup2sndacs (3.5.0)
|
5
|
+
backup (>= 3.4.0)
|
6
6
|
sndacs (~> 0.2.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
backup (3.
|
12
|
-
|
13
|
-
|
11
|
+
backup (3.5.0)
|
12
|
+
builder (= 3.2.0)
|
13
|
+
dropbox-sdk (= 1.5.1)
|
14
|
+
excon (= 0.20.1)
|
15
|
+
faraday (= 0.8.7)
|
16
|
+
fog (= 1.10.1)
|
17
|
+
formatador (= 0.2.4)
|
18
|
+
hipchat (= 0.8.0)
|
19
|
+
httparty (= 0.11.0)
|
20
|
+
i18n (= 0.6.4)
|
21
|
+
json (= 1.7.7)
|
22
|
+
mail (= 2.5.3)
|
23
|
+
mime-types (= 1.23)
|
24
|
+
multi_json (= 1.7.2)
|
25
|
+
multi_xml (= 0.5.3)
|
26
|
+
multipart-post (= 1.2.0)
|
27
|
+
net-scp (= 1.1.0)
|
28
|
+
net-sftp (= 2.1.1)
|
29
|
+
net-ssh (= 2.6.7)
|
30
|
+
nokogiri (= 1.5.9)
|
31
|
+
open4 (= 1.3.0)
|
32
|
+
parallel (= 0.6.4)
|
33
|
+
polyglot (= 0.3.3)
|
34
|
+
prowler (= 1.3.1)
|
35
|
+
ruby-hmac (= 0.4.0)
|
36
|
+
simple_oauth (= 0.2.0)
|
37
|
+
thor (= 0.18.1)
|
38
|
+
treetop (= 1.4.12)
|
39
|
+
twitter (= 4.6.2)
|
40
|
+
builder (3.2.0)
|
41
|
+
dropbox-sdk (1.5.1)
|
42
|
+
json
|
43
|
+
excon (0.20.1)
|
44
|
+
faraday (0.8.7)
|
45
|
+
multipart-post (~> 1.1)
|
46
|
+
fog (1.10.1)
|
47
|
+
builder
|
48
|
+
excon (~> 0.20)
|
49
|
+
formatador (~> 0.2.0)
|
50
|
+
mime-types
|
51
|
+
multi_json (~> 1.0)
|
52
|
+
net-scp (~> 1.1)
|
53
|
+
net-ssh (>= 2.1.3)
|
54
|
+
nokogiri (~> 1.5.0)
|
55
|
+
ruby-hmac
|
56
|
+
formatador (0.2.4)
|
57
|
+
hipchat (0.8.0)
|
58
|
+
httparty
|
59
|
+
httparty
|
60
|
+
httparty (0.11.0)
|
61
|
+
multi_json (~> 1.0)
|
62
|
+
multi_xml (>= 0.5.2)
|
63
|
+
i18n (0.6.4)
|
64
|
+
json (1.7.7)
|
65
|
+
mail (2.5.3)
|
66
|
+
i18n (>= 0.4.0)
|
67
|
+
mime-types (~> 1.16)
|
68
|
+
treetop (~> 1.4.8)
|
14
69
|
mime-types (1.23)
|
70
|
+
multi_json (1.7.2)
|
71
|
+
multi_xml (0.5.3)
|
72
|
+
multipart-post (1.2.0)
|
73
|
+
net-scp (1.1.0)
|
74
|
+
net-ssh (>= 2.6.5)
|
75
|
+
net-sftp (2.1.1)
|
76
|
+
net-ssh (>= 2.6.5)
|
77
|
+
net-ssh (2.6.7)
|
78
|
+
nokogiri (1.5.9)
|
15
79
|
open4 (1.3.0)
|
80
|
+
parallel (0.6.4)
|
81
|
+
polyglot (0.3.3)
|
82
|
+
prowler (1.3.1)
|
16
83
|
proxies (0.2.1)
|
84
|
+
ruby-hmac (0.4.0)
|
85
|
+
simple_oauth (0.2.0)
|
17
86
|
sndacs (0.2.4)
|
18
87
|
mime-types
|
19
88
|
proxies (~> 0.2.0)
|
20
89
|
thor (0.18.1)
|
90
|
+
treetop (1.4.12)
|
91
|
+
polyglot
|
92
|
+
polyglot (>= 0.3.1)
|
93
|
+
twitter (4.6.2)
|
94
|
+
faraday (~> 0.8, < 0.10)
|
95
|
+
multi_json (~> 1.0)
|
96
|
+
simple_oauth (~> 0.2)
|
21
97
|
|
22
98
|
PLATFORMS
|
23
99
|
ruby
|
data/NEWS.md
CHANGED
data/backup2sndacs.gemspec
CHANGED
@@ -16,6 +16,6 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
|
-
gem.add_dependency 'backup', '
|
19
|
+
gem.add_dependency 'backup', '>= 3.4.0'
|
20
20
|
gem.add_dependency 'sndacs', '~> 0.2.0'
|
21
21
|
end
|
@@ -19,9 +19,9 @@ module Backup
|
|
19
19
|
|
20
20
|
def remove!(pkg)
|
21
21
|
remote_path = remote_path_for(pkg)
|
22
|
-
|
22
|
+
package.filenames.each do |remote_file|
|
23
23
|
Logger.info "#{storage_name} started removing " +
|
24
|
-
"'#{
|
24
|
+
"'#{ remote_file }' from bucket '#{ bucket }'."
|
25
25
|
key = File.join(remote_path, remote_file)
|
26
26
|
res = bucket_service.objects.find(key).destroy
|
27
27
|
unless res == true
|
@@ -32,14 +32,14 @@ module Backup
|
|
32
32
|
|
33
33
|
def transfer!
|
34
34
|
remote_path = remote_path_for(@package)
|
35
|
-
|
35
|
+
package.filenames.each do |filename|
|
36
36
|
Logger.info "#{storage_name} started transferring " +
|
37
|
-
"'#{
|
38
|
-
key = File.join(remote_path,
|
37
|
+
"'#{ filename }'."
|
38
|
+
key = File.join(remote_path, filename)
|
39
39
|
o = bucket_service.objects.build(key)
|
40
|
-
o.content = open(File.join(
|
40
|
+
o.content = open(File.join(Config.tmp_path, filename))
|
41
41
|
res = o.save
|
42
|
-
raise "upload '#{
|
42
|
+
raise "upload '#{filename}' failed" unless res == true
|
43
43
|
Logger.info "file uploaded to bucket:#{bucket}, key:#{key}"
|
44
44
|
end
|
45
45
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backup2sndacs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LI Daobing
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backup
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.4.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sndacs
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|