Sha256: d5670c100ec55da73f5745def86092ce94d4b32e586034165b25a5dcba9ddcb9

Contents?: true

Size: 837 Bytes

Versions: 3

Compression:

Stored size: 837 Bytes

Contents

require "active_support"
require "active_support/core_ext"
require "yaml"
require "cc/analyzer"
require "cc/workspace"
require "cc/yaml"

module CC
  module CLI
    autoload :Analyze, "cc/cli/analyze"
    autoload :Command, "cc/cli/command"
    autoload :Console, "cc/cli/console"
    autoload :Engines, "cc/cli/engines"
    autoload :Help, "cc/cli/help"
    autoload :Init, "cc/cli/init"
    autoload :Runner, "cc/cli/runner"
    autoload :Test, "cc/cli/test"
    autoload :ValidateConfig, "cc/cli/validate_config"
    autoload :Version, "cc/cli/version"

    def self.debug(message, values = {})
      if ENV["CODECLIMATE_DEBUG"]
        if values.any?
          message << " "
          message << values.map { |k, v| "#{k}=#{v.inspect}" }.join(" ")
        end

        $stderr.puts("[DEBUG] #{message}")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
codeclimate-0.24.1 lib/cc/cli.rb
codeclimate-0.24.0 lib/cc/cli.rb
codeclimate-0.23.0 lib/cc/cli.rb