miga-base 1.3.15.12 → 1.3.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miga/cli/action/doctor/operations.rb +18 -0
- data/lib/miga/cli/action/doctor.rb +1 -0
- data/lib/miga/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9831118f9d6abd893207d1d902f78187db3cb2cbecfefcd9695388963433937
|
4
|
+
data.tar.gz: 1363e1b9b96c017be4cd3034aba69cc5c1c7a0ef9bbc05bcf6c0a0c5f926b366
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 871c33305ebefcad9097c804956429d73b92459df2ab5f7494d635b2303f40737540c4d7d610dcc528e8c39339589341eedaddae04e62d691e5b64ba254a90ed
|
7
|
+
data.tar.gz: b37a9a0c2f13cdc3f0db9ca7e9dd411aaf093a9b14980107dd656d9e56298e474791720f87c8bec0444e2fe1a2b0513836d4d02421484e1482cfc69435e82ed3
|
@@ -65,6 +65,24 @@ module MiGA::Cli::Action::Doctor::Operations
|
|
65
65
|
cli.say
|
66
66
|
end
|
67
67
|
|
68
|
+
##
|
69
|
+
# Perform md-files operation with MiGA::Cli +cli+
|
70
|
+
def check_mdfiles(cli)
|
71
|
+
cli.say 'Looking for unregistered files in the metadata folder'
|
72
|
+
md = File.join(cli.load_project.path, 'metadata')
|
73
|
+
Dir.each_child(md) do |file|
|
74
|
+
expected_ds = File.basename(file, '.json')
|
75
|
+
next if cli.load_project.dataset_names.include?(expected_ds)
|
76
|
+
file_path = File.join(md, file)
|
77
|
+
if Dir.exist?(file_path)
|
78
|
+
cli.say " > Ignoring directory: #{file}"
|
79
|
+
else
|
80
|
+
cli.say " > Removing: #{file}"
|
81
|
+
File.unlink(File.join(md, file))
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
68
86
|
##
|
69
87
|
# Perform cds operation with MiGA::Cli +cli+
|
70
88
|
def check_cds(cli)
|
@@ -49,6 +49,7 @@ class MiGA::Cli::Action::Doctor < MiGA::Cli::Action
|
|
49
49
|
# TODO Implement this check:
|
50
50
|
# refdb: ['ref-db', 'Check index format of reference databases'],
|
51
51
|
status: ['status', 'Update metadata status of all datasets'],
|
52
|
+
mdfiles:['md-files', 'Remove unregistered files in metadata'],
|
52
53
|
db: ['databases', 'Check integrity of database files'],
|
53
54
|
dist: ['distances', 'Check distance summary tables'],
|
54
55
|
bidir: ['bidirectional', 'Check distances are bidirectional'],
|
data/lib/miga/version.rb
CHANGED
@@ -12,7 +12,7 @@ module MiGA
|
|
12
12
|
# - String indicating release status:
|
13
13
|
# - rc* release candidate, not released as gem
|
14
14
|
# - [0-9]+ stable release, released as gem
|
15
|
-
VERSION = [1.3,
|
15
|
+
VERSION = [1.3, 16, 0].freeze
|
16
16
|
|
17
17
|
##
|
18
18
|
# Nickname for the current major.minor version.
|