Module: Diogenes
- Defined in:
- lib/diogenes/version.rb,
lib/diogenes.rb,
lib/diogenes/cli.rb,
lib/diogenes/cli/init.rb,
lib/diogenes/dsl/hook.rb,
lib/diogenes/dsl/rule.rb,
lib/diogenes/dsl/skill.rb,
lib/diogenes/dsl/artifact.rb
Overview
rbs_inline: enabled
Defined Under Namespace
Modules: DSL Classes: ArgumentError, Cli, ConfigurationError, Error, UserError, ValidationError
Constant Summary collapse
- VERSION =
: String
"0.1.4"
Class Method Summary collapse
-
.artifact(name, &block) ⇒ Object
: (String) { () -> void } -> DSL::Artifact.
-
.artifacts ⇒ Object
: () -> Array.
-
.hook(name, &block) ⇒ Object
: (String) { () -> void } -> DSL::Hook.
-
.hooks ⇒ Object
: () -> Array.
-
.reset! ⇒ Object
: () -> void.
-
.rule(name, &block) ⇒ Object
: (String) { () -> void } -> DSL::Rule.
-
.rules ⇒ Object
: () -> Array.
-
.skill(name, &block) ⇒ Object
: (String) { () -> void } -> DSL::Skill.
-
.skills ⇒ Object
: () -> Array.
-
.version ⇒ Object
: () -> String.
Class Method Details
.artifact(name, &block) ⇒ Object
: (String) { () -> void } -> DSL::Artifact
56 57 58 |
# File 'lib/diogenes.rb', line 56 def artifact(name, &block) @artifacts[name] = DSL::Artifact.new(name, &block) end |
.artifacts ⇒ Object
: () -> Array
70 |
# File 'lib/diogenes.rb', line 70 def artifacts = @artifacts.values |
.hook(name, &block) ⇒ Object
: (String) { () -> void } -> DSL::Hook
51 52 53 |
# File 'lib/diogenes.rb', line 51 def hook(name, &block) @hooks[name] = DSL::Hook.new(name, &block) end |
.reset! ⇒ Object
: () -> void
73 74 75 76 77 78 |
# File 'lib/diogenes.rb', line 73 def reset! @skills = {} @rules = {} @hooks = {} @artifacts = {} end |
.rule(name, &block) ⇒ Object
: (String) { () -> void } -> DSL::Rule
46 47 48 |
# File 'lib/diogenes.rb', line 46 def rule(name, &block) @rules[name] = DSL::Rule.new(name, &block) end |