Sha256: 055e333195082b23e8485d2f7b7854ab04ecbdcf6b0b95c08f50789082f5383c

Contents?: true

Size: 757 Bytes

Versions: 10

Compression:

Stored size: 757 Bytes

Contents

require "active_support"
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/prepare"
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

10 entries across 10 versions & 1 rubygems

Version Path
codeclimate-0.52.0 lib/cc/cli.rb
codeclimate-0.51.3 lib/cc/cli.rb
codeclimate-0.51.2 lib/cc/cli.rb
codeclimate-0.51.1 lib/cc/cli.rb
codeclimate-0.51.0 lib/cc/cli.rb
codeclimate-0.50.0 lib/cc/cli.rb
codeclimate-0.49.0 lib/cc/cli.rb
codeclimate-0.48.0 lib/cc/cli.rb
codeclimate-0.47.0 lib/cc/cli.rb
codeclimate-0.46.0 lib/cc/cli.rb