Sha256: 362a42bb556ef20b83f25427f646cd954060d52c154bcf14d287687f5fa375ed
Contents?: true
Size: 630 Bytes
Versions: 18
Compression:
Stored size: 630 Bytes
Contents
module Vpsb module Tasks class DbPostgresRole < BaseTask include AskSupport PATH = 'bootstrap_server_app_in_do/roles/db.json' prepare_squence :db_postgres_version, :db_postgres_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(:db_postgres_json)) end private def process(result) return true if result[0].to_s.downcase == 'y' reprepare false end end end end
Version data entries
18 entries across 18 versions & 1 rubygems