9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/vkit/cli/commands/policy_pack_upgrade_command.rb', line 9
def call(pack_name:, dir:, force: false)
ensure_project!(dir)
manager = Vkit::CLI::PolicyPack::Manager.new(
project_root: dir
)
results =
if pack_name
[upgrade_single(manager, pack_name, force)]
else
manager.upgrade_all!(force: force)
end
print_summary(results)
puts "\nRun 'vkit policy bundle' to recompile."
rescue StandardError => e
puts "❌ Error: #{e.message}"
exit 1
end
|