Module: Legion::Extensions::Definitions
- Included in:
- Exec::Runners::Bundler, Exec::Runners::Filesystem, Exec::Runners::Git, Exec::Runners::Shell
- Defined in:
- lib/legion/extensions/exec.rb
Constant Summary collapse
- DEFAULTS =
{ remote_invocable: true, mcp_exposed: true, idempotent: false, risk_tier: :standard, tags: [], requires: [], inputs: {}, outputs: {} }.freeze
Instance Method Summary collapse
- #definition(method_name, **opts) ⇒ Object
- #definition_for(method_name) ⇒ Object
- #definitions ⇒ Object
Instance Method Details
#definition(method_name, **opts) ⇒ Object
20 21 22 |
# File 'lib/legion/extensions/exec.rb', line 20 def definition(method_name, **opts) own_definitions[method_name.to_sym] = DEFAULTS.merge(opts) end |
#definition_for(method_name) ⇒ Object
28 29 30 |
# File 'lib/legion/extensions/exec.rb', line 28 def definition_for(method_name) definitions[method_name.to_sym] end |
#definitions ⇒ Object
24 25 26 |
# File 'lib/legion/extensions/exec.rb', line 24 def definitions own_definitions.dup end |