class Ojo::Manager
Constants
- MAGNITUDE_MAX
Public Instance Methods
clear_all()
click to toggle source
# File lib/ojo/manager.rb, line 18 def clear_all data_sets = ::Ojo::DataSets.new.sets_available FileUtils.rm_rf File.join(::Ojo.configuration.location, 'diff') data_sets.each { |d| FileUtils.rm_rf(File.join(::Ojo.configuration.location, d)) } end
clear_diff()
click to toggle source
# File lib/ojo/manager.rb, line 14 def clear_diff FileUtils.rm_rf File.join(::Ojo.configuration.location, 'diff') end
compare(branch_1, branch_2)
click to toggle source
# File lib/ojo/manager.rb, line 24 def compare(branch_1, branch_2) unless branch_1 && branch_2 branches = ::Ojo::DataSets.new.sets_available unless branch_1 branches.each do |branch| if branch != branch_2 branch_1 = branch break end end end unless branch_2 branches.each do |branch| if branch != branch_1 branch_2 = branch break end end end end results = ::Ojo::Ojo.new.compare(branch_1, branch_2) sorted_results = ::Ojo::Sorter.new(results[1], MAGNITUDE_MAX).sort results[1][:results] = sorted_results ::Ojo::Output.new(MAGNITUDE_MAX).display_to_console results[1] end
data_sets()
click to toggle source
# File lib/ojo/manager.rb, line 9 def data_sets data_sets = ::Ojo::DataSets.new.sets_available ::Ojo.display_data_sets(data_sets) end
location()
click to toggle source
# File lib/ojo/manager.rb, line 5 def location puts "Ojo file location: #{::Ojo.configuration.location}" end