Class: Commands::MetaOptions
- Inherits:
-
Object
- Object
- Commands::MetaOptions
- Defined in:
- lib/commands/meta_options.rb
Class Method Summary collapse
-
.apps ⇒ Object
the valid apps we can deploy.
- .availability_zones ⇒ Object
-
.roles ⇒ Object
the roles that a given server can play only one role per server is allowed.
Class Method Details
.apps ⇒ Object
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_zones ⇒ Object
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 |
.roles ⇒ Object
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 |