Class: Ufo::Network

Inherits:
Command show all
Defined in:
lib/ufo/network/fetch.rb,
lib/ufo/network.rb,
lib/ufo/network/helper.rb

Overview

Provides access to default network settings for a vpc: subnets and security_group If no @vpc_id is provided to the initializer then the default vpc is used.

Defined Under Namespace

Modules: Helper Classes: Fetch, Init

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, website

Class Method Details

.cli_optionsObject



3
4
5
6
7
8
9
10
11
# File 'lib/ufo/network.rb', line 3

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

Instance Method Details

#initObject



17
18
19
# File 'lib/ufo/network.rb', line 17

def init
  Init.start
end