Module: Ebfly::Options
- Included in:
- Environment
- Defined in:
- lib/ebfly/options.rb
Constant Summary collapse
- NAMESPACES =
{ "asg" => "aws:autoscaling:asg", "launchconfiguration" => "aws:autoscaling:launchconfiguration", "trigger" => "aws:autoscaling:trigger", "rollingupdate" => "aws:autoscaling:updatepolicy:rollingupdate", "vpc" => "aws:ec2:vpc", "application" => "aws:elasticbeanstalk:application", "command" => "aws:elasticbeanstalk:command", "environment" => "aws:elasticbeanstalk:environment", "monitoring" => "aws:elasticbeanstalk:monitoring", "topics" => "aws:elasticbeanstalk:sns:topics", "sqsd" => "aws:elasticbeanstalk:sqsd", "healthcheck" => "aws:elb:healthcheck", "loadbalancer" => "aws:elb:loadbalancer", "policies" => "aws:elb:policies", "dbinstance" => "aws:rds:dbinstance", "hostmanager" => "aws:elasticbeanstalk:hostmanager" }
Instance Method Summary collapse
Instance Method Details
#parse_option_values(option_values) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/ebfly/options.rb', line 26 def parse_option_values(option_values) ret = [] option_values.each do |ov| k, value = ov.split('=') next if value.nil? ns, key = k.split('-') namespace = NAMESPACES[ns.strip] namespace = ns unless namespace ret << { namespace: namespace, option_name: key.strip, value: value.strip } end ret end |