Module: Rails::Hyperdrive

Defined in:
lib/rails/hyperdrive.rb,
lib/rails/hyperdrive/engine.rb,
lib/rails/hyperdrive/version.rb,
lib/rails/hyperdrive/lock_file.rb,
lib/rails/hyperdrive/mcp_server.rb,
lib/rails/hyperdrive/sql_safety.rb,
lib/rails/hyperdrive/tools/base.rb,
lib/rails/hyperdrive/audit_header.rb,
lib/rails/hyperdrive/auto_install.rb,
lib/rails/hyperdrive/install_plan.rb,
lib/rails/hyperdrive/drift_verdict.rb,
lib/rails/hyperdrive/install_shell.rb,
lib/rails/hyperdrive/stack_profile.rb,
lib/rails/hyperdrive/tools/run_sql.rb,
lib/rails/hyperdrive/index_document.rb,
lib/rails/hyperdrive/install_layout.rb,
lib/rails/hyperdrive/skill_template.rb,
lib/rails/hyperdrive/tools/run_ruby.rb,
lib/rails/hyperdrive/artifact_status.rb,
lib/rails/hyperdrive/eager_footprint.rb,
lib/rails/hyperdrive/resources/skill.rb,
lib/rails/hyperdrive/tools/tail_logs.rb,
lib/rails/hyperdrive/claude_md_import.rb,
lib/rails/hyperdrive/console_executor.rb,
lib/rails/hyperdrive/install_pipeline.rb,
lib/rails/hyperdrive/tools/lookup_doc.rb,
lib/rails/hyperdrive/tools/list_models.rb,
lib/rails/hyperdrive/tools/list_routes.rb,
lib/rails/hyperdrive/tools/describe_app.rb,
lib/rails/hyperdrive/companion_discovery.rb,
lib/rails/hyperdrive/tools/locate_source.rb,
lib/rails/hyperdrive/safety/rack_middleware.rb,
lib/rails/hyperdrive/resources/stack_profile.rb,
lib/rails/hyperdrive/bundler_artifact_discovery.rb

Defined Under Namespace

Modules: AuditHeader, AutoInstall, BundlerArtifactDiscovery, ClaudeMdImport, ConsoleExecutor, DriftVerdict, EagerFootprint, IndexDocument, InstallLayout, InstallPlan, McpServer, Resources, Safety, SkillTemplate, SqlSafety, Tools Classes: ArtifactStatus, CompanionDiscovery, Configuration, Engine, InstallPipeline, InstallShell, LockFile, StackProfile

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.configurationObject



23
24
25
# File 'lib/rails/hyperdrive.rb', line 23

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



27
28
29
# File 'lib/rails/hyperdrive.rb', line 27

def self.configure
  yield(configuration)
end

.dev_mode?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/rails/hyperdrive.rb', line 19

def self.dev_mode?
  defined?(::Rails) && ::Rails.respond_to?(:env) && ::Rails.env.development?
end

.reset_configuration!Object



31
32
33
# File 'lib/rails/hyperdrive.rb', line 31

def self.reset_configuration!
  @configuration = nil
end

.rootObject



15
16
17
# File 'lib/rails/hyperdrive.rb', line 15

def self.root
  @root ||= File.expand_path("..", __dir__)
end