Sha256: 2ffb863ace05235b5b379e517ae17dc82061be38cd800ad97512728ee41feaf8
Contents?: true
Size: 659 Bytes
Versions: 2
Compression:
Stored size: 659 Bytes
Contents
require 'tempfile' class Nib::CodeClimate include Nib::Command def self.execute(args, options = '') # Discard service name because codeclimate is run on local path args.shift new(nil, args.join(' '), options).execute end def script @script ||= <<-SCRIPT docker-compose \ -f #{compose_file.path} \ run \ --rm \ codeclimate \ #{command} SCRIPT end private def config @config ||= Nib.load_config(:codeclimate, 'docker-compose.yml') end def compose_file @compose_file ||= Tempfile.open('compose') do |file| file.tap { |f| f.write(config) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nib-1.4.2 | lib/nib/code_climate.rb |
nib-1.4.1 | lib/nib/code_climate.rb |