Sha256: 7b27e42c928ca41e67eab5ebf32a07c19a042b294aeb4d0f967547b39342bb20
Contents?: true
Size: 600 Bytes
Versions: 6
Compression:
Stored size: 600 Bytes
Contents
require 'rubycritic/configuration' module Rubycritic class CommandFactory def self.create(options = {}) Config.set(options) command_class(Config.mode).new(options) end def self.command_class(mode) case mode when :version require 'rubycritic/commands/version' Command::Version when :help require 'rubycritic/commands/help' Command::Help when :ci require 'rubycritic/commands/ci' Command::Ci else require 'rubycritic/commands/default' Command::Default end end end end
Version data entries
6 entries across 6 versions & 1 rubygems