Sha256: e2a2356bac2b3a3511d720c94c15d830c0d85e5b17f96090e4b6127f2d891dd8

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

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 'launchy'
require 'base64'

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

    def process
      Process
    end

    def signal
      Signal
    end

    def thread
      Thread
    end

    def at_exit(&block)
      Kernel.at_exit(&block)
    end

    def launchy
      Launchy
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
uffizzi-cli-2.4.11 lib/uffizzi.rb
uffizzi-cli-2.4.10 lib/uffizzi.rb
uffizzi-cli-2.4.9 lib/uffizzi.rb
uffizzi-cli-2.4.8 lib/uffizzi.rb