Sha256: a56c2c0c823a4106c4b2d28b5b88d50187777ef4dc72dccaa325eed913695a76

Contents?: true

Size: 887 Bytes

Versions: 8

Compression:

Stored size: 887 Bytes

Contents

# frozen_string_literal: true

require 'io/console'
require 'tty-spinner'
require 'sentry-ruby'
require 'active_support'
require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/core_ext/object/blank'

require 'thor'
require 'uffizzi/error'
require 'uffizzi/shell'
require 'uffizzi/promt'
require 'uffizzi/version'
require 'uffizzi/clients/api/api_client'
require 'uffizzi/clients/api/api_routes'
require 'uffizzi/config_file'
require 'uffizzi/token'
require_relative '../config/uffizzi'

Sentry.init do |config|
  config.dsn = Base64.decode64(ENV['LOGGER_KEY'].to_s)
  config.logger = Sentry::Logger.new(nil)
end

module Uffizzi
  class << self
    def ui
      @ui ||= Uffizzi::UI::Shell.new
    end

    def prompt
      @prompt ||= Uffizzi::UI::Prompt.new
    end

    def root
      @root ||= Pathname.new(File.expand_path('..', __dir__))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
uffizzi-cli-2.1.0 lib/uffizzi.rb
uffizzi-cli-2.0.37 lib/uffizzi.rb
uffizzi-cli-2.0.36 lib/uffizzi.rb
uffizzi-cli-2.0.35 lib/uffizzi.rb
uffizzi-cli-2.0.34 lib/uffizzi.rb
uffizzi-cli-2.0.32 lib/uffizzi.rb
uffizzi-cli-2.0.27 lib/uffizzi.rb
uffizzi-cli-2.0.29 lib/uffizzi.rb