Sha256: 1ef3d988ed5c55ce7f10fb50fa15235920522d14f2d8a4fc8ada5baf2d727547
Contents?: true
Size: 767 Bytes
Versions: 145
Compression:
Stored size: 767 Bytes
Contents
require "cc/analyzer" module CC module CLI module Engines class Enable < EngineCommand def run require_codeclimate_yml if !engine_exists? say "Engine not found. Run 'codeclimate engines:list' for a list of valid engines." elsif engine_enabled? say "Engine already enabled." pull_docker_images else enable_engine update_yaml say "Engine added to .codeclimate.yml." pull_docker_images end end private def pull_docker_images Engines::Install.new.run end def enable_engine parsed_yaml.enable_engine(engine_name) end end end end end
Version data entries
145 entries across 145 versions & 1 rubygems