Module: Diogenes
- Defined in:
- lib/diogenes/targets.rb,
lib/diogenes.rb,
lib/diogenes/cli.rb,
lib/diogenes/version.rb,
lib/diogenes/cli/init.rb,
lib/diogenes/dsl/hook.rb,
lib/diogenes/dsl/rule.rb,
lib/diogenes/cli/build.rb,
lib/diogenes/cli/watch.rb,
lib/diogenes/dsl/skill.rb,
lib/diogenes/cli/evaluate.rb,
lib/diogenes/cli/validate.rb,
lib/diogenes/dsl/artifact.rb,
lib/diogenes/targets/base.rb,
lib/diogenes/build/sources.rb,
lib/diogenes/configuration.rb,
lib/diogenes/targets/codex.rb,
lib/diogenes/targets/cursor.rb,
lib/diogenes/targets/gemini.rb,
lib/diogenes/validate/issue.rb,
lib/diogenes/evaluation/gate.rb,
lib/diogenes/targets/copilot.rb,
lib/diogenes/validate/runner.rb,
lib/diogenes/evaluation/gates.rb,
lib/diogenes/evaluation/session.rb,
lib/diogenes/targets/claude_code.rb,
lib/diogenes/evaluation/ci_runner.rb,
lib/diogenes/evaluation/decision_record.rb,
sig/diogenes.rbs,
sig/generated/diogenes.rbs,
sig/generated/diogenes/cli.rbs,
sig/generated/diogenes/targets.rbs,
sig/generated/diogenes/version.rbs,
sig/generated/diogenes/cli/init.rbs,
sig/generated/diogenes/dsl/hook.rbs,
sig/generated/diogenes/dsl/rule.rbs,
sig/generated/diogenes/cli/build.rbs,
sig/generated/diogenes/dsl/skill.rbs,
sig/generated/diogenes/cli/evaluate.rbs,
sig/generated/diogenes/dsl/artifact.rbs,
sig/generated/diogenes/targets/base.rbs,
sig/generated/diogenes/configuration.rbs,
sig/generated/diogenes/targets/codex.rbs,
sig/generated/diogenes/targets/cursor.rbs,
sig/generated/diogenes/targets/gemini.rbs,
sig/generated/diogenes/evaluation/gate.rbs,
sig/generated/diogenes/targets/copilot.rbs,
sig/generated/diogenes/evaluation/gates.rbs,
sig/generated/diogenes/evaluation/session.rbs,
sig/generated/diogenes/targets/claude_code.rbs,
sig/generated/diogenes/evaluation/ci_runner.rbs,
sig/generated/diogenes/evaluation/decision_record.rbs
Overview
rbs_inline: enabled
Defined Under Namespace
Modules: Build, DSL, Evaluation, Targets, Validate Classes: ArgumentError, Cli, Configuration, ConfigurationError, Error, UserError, ValidationError
Constant Summary collapse
- VERSION =
: String
"0.1.10"
Class Method Summary collapse
-
.artifact(name) { ... } ⇒ DSL::Artifact
: (String) { () -> void } -> DSL::Artifact.
-
.artifacts ⇒ Array[DSL::Artifact]
: () -> Array.
-
.configuration ⇒ Configuration
: () -> Configuration.
-
.configure { ... } ⇒ Configuration
: () { () -> void } -> Configuration.
-
.hook(name) { ... } ⇒ DSL::Hook
: (String) { () -> void } -> DSL::Hook.
-
.hooks ⇒ Array[DSL::Hook]
: () -> Array.
-
.reset! ⇒ void
: () -> void.
-
.rule(name) { ... } ⇒ DSL::Rule
: (String) { () -> void } -> DSL::Rule.
-
.rules ⇒ Array[DSL::Rule]
: () -> Array.
-
.skill(name) { ... } ⇒ DSL::Skill
: (String) { () -> void } -> DSL::Skill.
-
.skills ⇒ Array[DSL::Skill]
: () -> Array.
-
.version ⇒ String
: () -> String.
Class Method Details
.artifact(name) { ... } ⇒ DSL::Artifact
: (String) { () -> void } -> DSL::Artifact
68 69 70 |
# File 'lib/diogenes.rb', line 68 def artifact(name, &block) @artifacts[name] = DSL::Artifact.new(name, &block) end |
.artifacts ⇒ Array[DSL::Artifact]
: () -> Array
82 |
# File 'lib/diogenes.rb', line 82 def artifacts = @artifacts.values |
.configuration ⇒ Configuration
: () -> Configuration
48 49 50 |
# File 'lib/diogenes.rb', line 48 def configuration @configuration ||= Configuration.new end |
.configure { ... } ⇒ Configuration
: () { () -> void } -> Configuration
41 42 43 44 45 |
# File 'lib/diogenes.rb', line 41 def configure(&block) @configuration ||= Configuration.new @configuration.instance_eval(&block) if block @configuration end |
.hook(name) { ... } ⇒ DSL::Hook
: (String) { () -> void } -> DSL::Hook
63 64 65 |
# File 'lib/diogenes.rb', line 63 def hook(name, &block) @hooks[name] = DSL::Hook.new(name, &block) end |
.hooks ⇒ Array[DSL::Hook]
: () -> Array
79 |
# File 'lib/diogenes.rb', line 79 def hooks = @hooks.values |
.reset! ⇒ void
This method returns an undefined value.
: () -> void
85 86 87 88 89 90 91 |
# File 'lib/diogenes.rb', line 85 def reset! @skills = {} @rules = {} @hooks = {} @artifacts = {} @configuration = nil end |
.rule(name) { ... } ⇒ DSL::Rule
: (String) { () -> void } -> DSL::Rule
58 59 60 |
# File 'lib/diogenes.rb', line 58 def rule(name, &block) @rules[name] = DSL::Rule.new(name, &block) end |
.rules ⇒ Array[DSL::Rule]
: () -> Array
76 |
# File 'lib/diogenes.rb', line 76 def rules = @rules.values |
.skill(name) { ... } ⇒ DSL::Skill
: (String) { () -> void } -> DSL::Skill
53 54 55 |
# File 'lib/diogenes.rb', line 53 def skill(name, &block) @skills[name] = DSL::Skill.new(name, &block) end |
.skills ⇒ Array[DSL::Skill]
: () -> Array
73 |
# File 'lib/diogenes.rb', line 73 def skills = @skills.values |