Sha256: fc0303b6856b8f0b57dc280e3c472db98dac7fbb91209866fdc2c6280eab8ab6

Contents?: true

Size: 500 Bytes

Versions: 5

Compression:

Stored size: 500 Bytes

Contents

require "milc/version"

require 'logger'

module Milc
  autoload :Base, 'milc/base'
  autoload :Dsl , 'milc/dsl'

  autoload :Gcloud, 'milc/gcloud'

  class << self
    attr_accessor :dry_run

    attr_reader :verbose
    def verbose=(value)
      @verbose = value
      logger.level = @verbose ? Logger::DEBUG : Logger::INFO
      value
    end

    def logger
      unless @logger
        @logger = Logger.new($stdout)
        @logger.level = Logger::INFO
      end
      @logger
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
milc-0.1.4 lib/milc.rb
milc-0.1.3 lib/milc.rb
milc-0.1.2 lib/milc.rb
milc-0.1.1 lib/milc.rb
milc-0.1.0 lib/milc.rb