Sha256: ac86e585b48f2e9803dc96dec19674b4f191e16616fd153a38d57544546251b4
Contents?: true
Size: 671 Bytes
Versions: 57
Compression:
Stored size: 671 Bytes
Contents
require 'fileutils' require 'yaml' class Ufo::Upgrade class Upgrade43to45 def initialize(options) @options = options end def run settings_path = ".ufo/settings.yml" settings = YAML.load_file(settings_path) if settings.dig("base", "stack_naming") == "append_ufo_env" puts "Detected stack_naming in the #{settings_path}. Already upgraded to v4.5" return end puts "Upgrading to ufo v4.5..." settings["base"] ||= {} settings["base"]["stack_naming"] = "append_ufo_env" text = YAML.dump(settings) IO.write(settings_path, text) puts "Updated .ufo/settings.yml" end end end
Version data entries
57 entries across 57 versions & 1 rubygems