backup_restore 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/backup_restore.rb +4 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 613b9269f9ac596c48d435acea0104daaeb5a77e7b3de9bd3a269a1e08c11a07
4
- data.tar.gz: 7c3621da53ccff81bb257df6d5353e6f0900a658230b6edb134cca8cca9c46c2
3
+ metadata.gz: 52a3d02544e7d87169f6e59d87fb310df702b686595ad1710fdca391ef2a6f0e
4
+ data.tar.gz: 8e479224dd354eed4e1a0ad0c86e6b2aba9a4de1eedaec4d2c2eb168fe130415
5
5
  SHA512:
6
- metadata.gz: be1f6ff91000c35702118ee9092e71e5a902b6f1d713aef8a56cb007c20a79b2b21980ac99327784995fa6e1c03e435f8ac04ede663e8a5b4e8c62c42d7dc754
7
- data.tar.gz: e6e306071341fa77f7c6e5b1378bc40759dae01d576bd0c73eaff0af08b9e83328eb930949655df37b59bd68d9454ef297f72aa48902cbc67f65ef80fe25ee99
6
+ metadata.gz: 0b2e650319d9938e0c636463a4cf4df33bacd744a9ac9777d31341598f03f923837f15e9ebae74244bfeb56bb4a2f9283a20b2515b43b0538f47e580d18d62ef
7
+ data.tar.gz: 50d801d332ebd95cb9f24fe8db8e81871a4a559d1cda4e9be7f943055b6a2cc8095ef6b4cd3203c709c52c8544fa653dfbb3ced06fd624e306f30512dcbde422
@@ -80,7 +80,7 @@ class BackupRestore
80
80
  else
81
81
  puts "files:"
82
82
  end
83
- for file in files
83
+ files.each do |file|
84
84
  puts file
85
85
  end
86
86
  raise "expected exactly one file, not handled!"
@@ -126,7 +126,9 @@ class BackupRestore
126
126
  def self.unsplit_archive(archive_storage_root, archive_name)
127
127
  storage = get_storage_folder(archive_storage_root, archive_name)
128
128
  change_directory(storage)
129
- raise "archive name was assumed to not have spaces but it is #{archive_name}" if archive_name.include?(" ")
129
+ if archive_name.include?(" ")
130
+ raise "archive name was assumed to not have spaces but it is #{archive_name}"
131
+ end
130
132
  execute_command("cat #{archive_name}.tar.enc-* > '#{archive_name}.tar.enc'")
131
133
  end
132
134
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup_restore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Konieczny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-30 00:00:00.000000000 Z
11
+ date: 2019-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: matkoniecz-ruby-style