Module: EcsDeployCli::DSL::AutoOptions

Extended by:
ActiveSupport::Concern
Included in:
Cluster, Cluster::VPC, Container, Cron, Cron::Task, Service, Service::LoadBalancer, Task
Defined in:
lib/ecs_deploy_cli/dsl/auto_options.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



18
19
20
21
22
23
24
25
26
27
# File 'lib/ecs_deploy_cli/dsl/auto_options.rb', line 18

def method_missing(name, *args, &block)
  if args.count == 1 && !block
    unless self.class._allowed_options.include?(name)
      EcsDeployCli.logger.info("Used unhandled option #{name.to_sym} = #{args.first} in #{self.class.name}")
    end
    _options[name.to_sym] = args.first
  else
    super
  end
end

Instance Method Details

#_optionsObject



29
30
31
# File 'lib/ecs_deploy_cli/dsl/auto_options.rb', line 29

def _options
  @_options ||= {}
end