6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/fresh_erd.rb', line 6
def exec(input, output)
warn "[DEPRECATION] This gem has been renamed to `erd-keeper` and will no longer be supported. Please switch to `erd-keeper` as soon as possible."
if Dir.exist?(output)
while(output[-1] == "/")
output.chop!
end
else
puts "--- output: Folder not found!"
puts "--- Stop the output of ERD."
return
end
if File.exist?(input)
generate_erd_by_setting(input, output)
else
puts "--- input: File not found!"
puts "--- Instead, it outputs for all models."
generate_project_erd(output)
end
end
|