Class: FluenceCi::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/fluence_ci/install_generator.rb

Overview

Rails generator invoked via bin/rails generate fluence_ci:install. Discovered by Rails through the conventional path lib/generators/<namespace>/install_generator.rb. The Railtie registers it at boot time so consumers don't need any extra wiring.

Generates a standalone bin/fluence-ci executable that runs the Fluence catalog via Fluence::Ci::Tools::Runner, side-by-side with Rails 8's native bin/ci. No injection into config/ci.rb — the two scripts run independently and never duplicate work:

* `bin/ci` runs Rails defaults (rubocop, brakeman, bundler-audit).
* `bin/fluence-ci` runs Fluence-specific checks (ruby_audit,
codequality, docs, tests).

Devs chain them as needed (bin/ci && bin/fluence-ci) or run whichever is relevant for their iteration.

Constant Summary collapse

TARGET =

Path of the executable installed in the host Rails app.

'bin/fluence-ci'

Instance Method Summary collapse

Instance Method Details

#installvoid

This method returns an undefined value.

Copy the standalone Fluence runner script into bin/fluence-ci and mark it executable.