22 lines
441 B
Crystal
22 lines
441 B
Crystal
|
|
require "../actions"
|
|
|
|
module Arkisto
|
|
class PlanAction < Action
|
|
def initialize(config : ConfigModel, options : ActionOptions)
|
|
@config = config
|
|
puts "action = Plan"
|
|
end
|
|
|
|
def perform
|
|
@config.targets.each do |target|
|
|
puts "#{target.name}"
|
|
puts "- volume_id #{target.volume_id}"
|
|
# puts "- snapshot_prefix #{target.snapshot_prefix}"
|
|
puts ""
|
|
end
|
|
return
|
|
end
|
|
end
|
|
end
|