Sha256: e306ec7a4e9e50fdcfac6e2fd8e6fca2c9c9e93b2c2b2396274b7af09fd98324

Contents?: true

Size: 1.96 KB

Versions: 2

Compression:

Stored size: 1.96 KB

Contents

# frozen_string_literal: true

require 'sequel'
require 'sqlite3'
require 'k_log'
require 'cmdlet'

require 'ad/agent_architecture/version'
require 'ad/agent_architecture/database/create_schema'

DB = Sequel.sqlite

Ad::AgentArchitecture::Database::CreateSchema.new(DB).execute

require 'ad/agent_architecture/database/models'
require 'ad/agent_architecture/database/sql_query'
require 'ad/agent_architecture/dsl/data_accessors'
require 'ad/agent_architecture/dsl/child_dsl'
require 'ad/agent_architecture/dsl/attribute_dsl'
require 'ad/agent_architecture/dsl/prompt_dsl'
require 'ad/agent_architecture/dsl/section_dsl'
require 'ad/agent_architecture/dsl/step_dsl'
require 'ad/agent_architecture/dsl/settings_dsl'
require 'ad/agent_architecture/dsl/workflow_dsl'
require 'ad/agent_architecture/dsl/agent_dsl'
require 'ad/agent_architecture/dsl/actions/save_database'
require 'ad/agent_architecture/dsl/actions/save_json'
require 'ad/agent_architecture/dsl/actions/save_yaml'
require 'ad/agent_architecture/report/dsl_generator'
require 'ad/agent_architecture/report/agent_data_builder'
require 'ad/agent_architecture/report/workflow_detail_report'
require 'ad/agent_architecture/report/workflow_list_report'

# AgentDsl Alias
Agent = Ad::AgentArchitecture::Dsl::AgentDsl

module Ad
  # Module for the Agent Architecture gem
  module AgentArchitecture
    # raise Ad::AgentArchitecture::Error, 'Sample message'
    Error = Class.new(StandardError)

    # Define the root path of the gem
    ROOT_PATH = Pathname.new(File.expand_path('../..', __dir__))

    def self.gem_root
      ROOT_PATH
    end

    def self.gem_relative_file(*args)
      File.join(ROOT_PATH, *args)
    end
  end
end

if ENV.fetch('KLUE_DEBUG', 'false').downcase == 'true'
  namespace = 'AdAgentArchitecture::Version'
  file_path = $LOADED_FEATURES.find { |f| f.include?('ad-agent_architecture/version') }
  version   = AdAgentArchitecture::VERSION.ljust(9)
  puts "#{namespace.ljust(35)} : #{version.ljust(9)} : #{file_path}"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ad-agent_architecture-0.0.24 lib/ad/agent_architecture.rb
ad-agent_architecture-0.0.23 lib/ad/agent_architecture.rb