Sha256: c3af7f0fa1e89d9af3b436e14f0769739a5ed3e4ffad1081f3726bc1cf284ccc

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

module Ufo
  class Upgrade < Command
    autoload :Upgrade3, "ufo/upgrade/upgrade3"
    autoload :Upgrade33to34, "ufo/upgrade/upgrade33to34"
    autoload :Upgrade4, "ufo/upgrade/upgrade4"
    autoload :Upgrade43to44, "ufo/upgrade/upgrade43to44"

    desc "v2to3", "Upgrade from version 2 to 3."
    def v2to3
      Upgrade3.new(options).run
    end

    desc "v33to34", "Upgrade from version 3.3 to 3.4"
    def v33to34
      Upgrade33to34.new(options).run
    end

    def self.options
      [
        [:force, type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files."],
        [:vpc_id, desc: "Vpc id"],
        [:ecs_subnets, type: :array, desc: "Subnets for ECS tasks, defaults to --elb-subnets set to"],
        [:elb_subnets, type: :array, desc: "Subnets for ELB"],
      ]
    end
    options.each { |o| option(*o) }
    desc "v3to4", "Upgrade from version 3 to 4."
    long_desc Help.text('upgrade/v3to4')
    def v3to4
      Upgrade4.start
    end

    desc "v43to44", "Upgrade from version 4.3 to 4.4"
    def v43to44
      Upgrade43to44.new(options).run
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ufo-4.4.3 lib/ufo/upgrade.rb
ufo-4.4.2 lib/ufo/upgrade.rb
ufo-4.4.1 lib/ufo/upgrade.rb
ufo-4.4.0 lib/ufo/upgrade.rb