Method: Formatron::CLI::Generators::Instance#instance_options

Defined in:
lib/formatron/cli/generators/instance.rb

#instance_options(c) ⇒ Object

rubocop:disable Metrics/MethodLength



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/formatron/cli/generators/instance.rb', line 9

def instance_options(c)
  c.option '-n', '--name STRING', 'The name for the configuration'
  c.option '-i', '--instance-name STRING', 'The name for the instance'
  c.option(
    '-s',
    '--s3-bucket STRING',
    'The S3 bucket to store encrypted configuration'
  )
  c.option(
    '-b',
    '--bootstrap-configuration STRING',
    'The name of the bootstrap configuration to depend on'
  )
  c.option(
    '-p',
    '--vpc STRING',
    'The name of the VPC to add the instance to'
  )
  c.option(
    '-u',
    '--subnet STRING',
    'The name of the subnet to add the instance to'
  )
  c.option(
    '-x',
    '--targets LIST',
    Array,
    'The targets (eg. production test)'
  )
end