Sha256: 391a71bb47f2c28bae3d85cf7e0dea3c99c55c38e6d45059d619819245e4afa6
Contents?: true
Size: 648 Bytes
Versions: 19
Compression:
Stored size: 648 Bytes
Contents
module Vpsb module Tasks class PackagesBags < BaseTask include AskSupport PATH = 'bootstrap_server_app_in_do/data_bags/components/packages.json' prepare_squence :packages_list, :packages_bags_json def call prepare ask_loop(proc {|r| process(r)}) do ap preparation_results p "Save this configuration y[es]/n[o]?" end Vpsb::Helpers::FileReplace.replace_json(PATH, core.get(:packages_bags_json)) end private def process(result) return true if result[0].to_s.downcase == 'y' reprepare false end end end end
Version data entries
19 entries across 19 versions & 1 rubygems