Sha256: 471d8eb29f7df4d8fd54d88c1246bd2f19f21af8a809acaeba4c078b0999b6b6

Contents?: true

Size: 938 Bytes

Versions: 9

Compression:

Stored size: 938 Bytes

Contents

require "active_support"
require "active_support/core_ext/module/remove_method" # Temporary, see https://github.com/codeclimate/codeclimate/pull/658
require "active_support/core_ext"
require "yaml"
require "cc/analyzer"
require "cc/workspace"
require "cc/yaml"

require "cc/cli/analyze"
require "cc/cli/command"
require "cc/cli/console"
require "cc/cli/engines"
require "cc/cli/help"
require "cc/cli/init"
require "cc/cli/output"
require "cc/cli/prepare"
require "cc/cli/prepare/quality"
require "cc/cli/runner"
require "cc/cli/test"
require "cc/cli/validate_config"
require "cc/cli/version"

module CC
  module CLI
    def self.debug?
      ENV["CODECLIMATE_DEBUG"]
    end

    def self.debug(message, values = {})
      if 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

9 entries across 9 versions & 1 rubygems

Version Path
codeclimate-0.69.0 lib/cc/cli.rb
codeclimate-0.68.0 lib/cc/cli.rb
codeclimate-0.67.0 lib/cc/cli.rb
codeclimate-0.66.0 lib/cc/cli.rb
codeclimate-0.65.0 lib/cc/cli.rb
codeclimate-0.64.0 lib/cc/cli.rb
codeclimate-0.63.7 lib/cc/cli.rb
codeclimate-0.63.6 lib/cc/cli.rb
codeclimate-0.63.5 lib/cc/cli.rb