backup-remote 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7b5edf0ad603b7239d24daec50e1a4164088f410
4
- data.tar.gz: b7f599f8de4c73e7193288d7bf6ae06e535a952a
2
+ SHA256:
3
+ metadata.gz: 4ba370c104959c9c50ee7395ca31788982f440b21afbd8aa631a14790f4c49f0
4
+ data.tar.gz: b6f055a5957e902de6e773cad1d3edfead8374c51dde3061dca440d18c0dd700
5
5
  SHA512:
6
- metadata.gz: be21ab2603e7c3b8701879071ea1186e7a4d6946dd7c44686c239ba2724c83de5924bbc7ab0152ac5c5d1933e80c026978436793837ec8ce78fbf599146f333c
7
- data.tar.gz: 6bae584edf1364195afdf78325132013d37140d56d135148032de4758c40c7600b3d2a71b8f99dbe1da65405d59992f27576d0e06f6434b46651ead8a8388bec
6
+ metadata.gz: 8b5c01281aa8be0d223390046b1ecfe1eea7c0eafa4ed006045a78b8583d42f0a5fb75c771c506b8323a799f35da06c0c3cbb2c762e3a8efb1ff43dd616d6c98
7
+ data.tar.gz: 36396637b9fe8d57add45f91a070895b25a29056cbe8325cefbdf777668ba399b406b4ab16c3a250f57d1421a6a02aeb0c13730f7e95708aa408d14fa1a17f1e
@@ -25,7 +25,6 @@ module Backup
25
25
  end
26
26
 
27
27
  def run_ssh_cmd(hostname, ssh_options, cmd)
28
- #puts "run ssh cmd: #{hostname}, #{ssh_user}, #{ssh_pass}, #{cmd}"
29
28
  host = Command.build_sshkit_host(hostname, ssh_options)
30
29
 
31
30
  #srv = ssh_user+'@'+hostname
@@ -47,13 +46,13 @@ module Backup
47
46
  end
48
47
  =end
49
48
 
50
- puts "output: #{output}"
49
+ #puts "output: #{output}"
51
50
 
52
51
  #
53
52
  return { res: 1, output: output }
54
53
 
55
54
  rescue => e
56
- puts "ssh error: #{e.message}, #{e.backtrace}"
55
+ #puts "ssh error: #{e.message}, #{e.backtrace}"
57
56
 
58
57
  {
59
58
  res: 0,
@@ -133,21 +132,21 @@ module Backup
133
132
  }
134
133
  end
135
134
 
136
- def ssh_upload_file(hostname, ssh_options, source_file, dest_file, handler=nil)
137
- host = Command.build_sshkit_host(hostname, ssh_options)
135
+ def ssh_upload_file(hostname, ssh_options, source_file, dest_file, handler=nil)
136
+ host = Command.build_sshkit_host(hostname, ssh_options)
138
137
 
139
- # scp
140
- f_temp = "/tmp/#{SecureRandom.uuid}"
138
+ # scp
139
+ f_temp = "/tmp/#{SecureRandom.uuid}"
141
140
 
142
- # sshkit
143
- SSHKit::Coordinator.new(host).each in: :sequence do
144
- # upload to temp file
145
- upload! source_file, f_temp
141
+ # sshkit
142
+ SSHKit::Coordinator.new(host).each in: :sequence do
143
+ # upload to temp file
144
+ upload! source_file, f_temp
146
145
 
147
- # upload to dest
148
- execute("cp #{f_temp} #{dest_file}", interaction_handler: handler)
146
+ # upload to dest
147
+ execute("cp #{f_temp} #{dest_file}", interaction_handler: handler)
149
148
 
150
- end
149
+ end
151
150
 
152
151
  =begin
153
152
  on host do |host|
@@ -166,14 +165,14 @@ module Backup
166
165
  end
167
166
  =end
168
167
 
169
- #
170
- return {res: 1, output: ""}
168
+ #
169
+ return {res: 1, output: ""}
171
170
  rescue => e
172
171
  {
173
172
  res: 0,
174
173
  error: e.message
175
174
  }
176
- end
175
+ end
177
176
 
178
177
  end
179
178
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Backup
4
- VERSION = '0.0.18'
4
+ VERSION = '0.0.19'
5
5
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup-remote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Ivak, Michael van Rooijen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-05 00:00:00.000000000 Z
11
+ date: 2020-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: sshkit
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -205,8 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
219
  - !ruby/object:Gem::Version
206
220
  version: '0'
207
221
  requirements: []
208
- rubyforge_project:
209
- rubygems_version: 2.6.13
222
+ rubygems_version: 3.0.3
210
223
  signing_key:
211
224
  specification_version: 4
212
225
  summary: Extends Backup gem to perform backups on remote servers. Provides an elegant