Sha256: a78e2265fba092276d22aacfd6e3823e28083521fdafbb87c2f584b3a92377f4
Contents?: true
Size: 803 Bytes
Versions: 12
Compression:
Stored size: 803 Bytes
Contents
require "shellwords" module Rubycritic module SourceControlSystem class Base @@systems = [] def self.register_system @@systems << self end def self.systems @@systems end 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." Double.new end end def self.connected_system_names "#{systems[0...-1].join(', ')} or #{systems[-1]}" end end end end require "rubycritic/source_control_systems/double" require "rubycritic/source_control_systems/git" require "rubycritic/source_control_systems/mercurial"
Version data entries
12 entries across 12 versions & 1 rubygems