class RubyCritic::SourceControlSystem::Base
Public Class Methods
connected_system_names()
click to toggle source
# File lib/rubycritic/source_control_systems/base.rb, line 31 def self.connected_system_names "#{systems[0...-1].join(', ')} or #{systems[-1]}" end
create()
click to toggle source
# File lib/rubycritic/source_control_systems/base.rb, line 19 def self.create supported_system = systems.find(&:supported?) if supported_system supported_system.new else puts 'RubyCritic can provide more feedback if you use '\ "a #{connected_system_names} repository. "\ 'Churn will not be calculated.' Double.new end end
register_system()
click to toggle source
# File lib/rubycritic/source_control_systems/base.rb, line 11 def self.register_system @@systems << self end
systems()
click to toggle source
# File lib/rubycritic/source_control_systems/base.rb, line 15 def self.systems @@systems end