Sha256: cd02ab9bba8484f5e570c974a278bf1d7bc373b931f9c5bd1ecf3b1121b2ec2b

Contents?: true

Size: 361 Bytes

Versions: 2

Compression:

Stored size: 361 Bytes

Contents

require 'rainbow'
module Codeguard
  class Setup
    extend Forwardable
    attr_accessor :lint

    def self.perform(lint)
      new(lint).tap(&:perform)
    end

    def initialize(lint)
      @lint = lint
    end

    def perform
      lint.setup
      puts Rainbow("Setup for #{lint} was finished.").green
    end
  end # class Setup
end # module Codeguard

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
codeguard-0.3.0 lib/codeguard/setup.rb
codeguard-0.2.0 lib/codeguard/setup.rb