Class: Commands::MetaOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/commands/meta_options.rb

Class Method Summary collapse

Class Method Details

.appsObject

the valid apps we can deploy



21
22
23
# File 'lib/commands/meta_options.rb', line 21

def self.apps
  [:photos, :zza, :rollup]
end

.availability_zonesObject



16
17
18
# File 'lib/commands/meta_options.rb', line 16

def self.availability_zones
  ["us-east-1a", "us-east-1b", "us-east-1c", "us-east-1d"]
end

.rolesObject

the roles that a given server can play only one role per server is allowed. If we need custom functionality we define a role that has the functionality we need. The meaning of the roles is defined in the chef script mapping from a role to recipes



12
13
14
# File 'lib/commands/meta_options.rb', line 12

def self.roles
  [:app_master, :app, :db, :util, :db_slave, :solo]
end