Class: Agent::Lock::CLI::Commands::SkillsInstall
- Defined in:
- lib/agent/lock/cli/commands/skills.rb
Overview
alock skills install: copy the bundled skill into a skills
directory, so an agent learns how to claim files before it first
needs to.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Agent::Lock::CLI::Commands::Base
Instance Method Details
#call(**options) ⇒ Skill::Result
45 46 47 48 49 50 51 52 |
# File 'lib/agent/lock/cli/commands/skills.rb', line 45 def call(**) into = destination_for() skill = into ? Skill.new(into: into) : Skill.new result = skill.install(overwrite: [:overwrite]) report(result) finish(result) end |