Class: Ridoku::Service
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#services ⇒ Object
Returns the value of attribute services.
Instance Method Summary collapse
-
#run(command = nil) ⇒ Object
Service name should be the same used to define configurations, ideally.
Methods inherited from Base
base_command, color_code_logs, configure_ec2_client, configure_iam_client, configure_instance_roles, configure_opsworks_client, configure_roles, configure_service_roles, create_app, create_role, deploy, execute_recipes, extract_instance_ids, fetch_account, fetch_app, fetch_instance, fetch_layer, fetch_permissions, fetch_roles, fetch_stack, get_instances_for_layer, get_layer_ids, if_debug?, initialize_app_environment, instance_by_id, instance_role_configured?, load_config, monitor_deployment, postgresql_group_exists?, pretty_instances, roles_configured?, rollback, run_command, save_app, save_config, save_layer, save_stack, select_instances, service_role_configured?, standard_deploy, update_cookbooks, update_pg_security_group, update_pg_security_groups_in_all_regions, valid_instances?
Instance Attribute Details
#services ⇒ Object
Returns the value of attribute services.
27 28 29 |
# File 'lib/ridoku/service.rb', line 27 def services @services end |
Instance Method Details
#run(command = nil) ⇒ Object
Service name should be the same used to define configurations, ideally.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/ridoku/service.rb', line 38 def run(command = nil) command ||= Base.config[:command] command.shift sub_command = command.shift environment = load_environment case sub_command when 'list' list when 'set', 'add' add when 'delete', 'remove', 'rm' delete when 'config', nil config(ARGV) else print_service_help end end |