Sha256: a13be2a37224d7070dd6ac2742d339b88ca6555545730b8f7870a6bed6f78ba5

Contents?: true

Size: 706 Bytes

Versions: 3

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

require_relative "gorails/version"
require "cli/ui"
require "cli/kit"

CLI::UI::StdoutRouter.enable

module Gorails
  class Error < StandardError; end

  TOOL_NAME = "gorails"
  ROOT = File.expand_path("../..", __FILE__)
  LOG_FILE = "/tmp/gorails.log"

  autoload(:EntryPoint, "gorails/entry_point")
  autoload(:Commands, "gorails/commands")

  Config = CLI::Kit::Config.new(tool_name: TOOL_NAME)
  Command = CLI::Kit::BaseCommand

  Executor = CLI::Kit::Executor.new(log_file: LOG_FILE)
  Resolver = CLI::Kit::Resolver.new(
    tool_name: TOOL_NAME,
    command_registry: Gorails::Commands::Registry
  )

  ErrorHandler = CLI::Kit::ErrorHandler.new(log_file: LOG_FILE)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gorails-0.1.5 lib/gorails.rb
gorails-0.1.4 lib/gorails.rb
gorails-0.1.3 lib/gorails.rb