Sha256: 1787fd40bc97fecbce8fb0dbe726dc16a6ced6d15cd2cd5d9dbe4b53b4c5de15

Contents?: true

Size: 752 Bytes

Versions: 1

Compression:

Stored size: 752 Bytes

Contents

module Ufo
  class Network < Command
    autoload :Init, "ufo/network/init"
    autoload :Helper, "ufo/network/helper"
    autoload :Fetch, "ufo/network/fetch"

    def self.cli_options
      [
        [:force, type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files."],
        [:ecs_subnets, type: :array, desc: "ECS Subnets"],
        [:elb_subnets, type: :array, desc: "ELB Subnets"],
        [:vpc_id, desc: "Vpc id"],
        [:filename, default: "default", desc: "Name of the settings file to create w/o extension."],
      ]
    end

    cli_options.each { |o| option(*o) }

    desc "init", "Creates network starter settings file."
    long_desc Help.text("network:init")
    def init
      Init.start
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ufo-4.4.3 lib/ufo/network.rb