Method: Confection::Project#controller

Defined in:
lib/confection/project.rb

#controller(scope, tool, options = {}) ⇒ Object

Create a configuration controller.

Parameters:

  • Context for which controller is being created.

  • The tool of the configuration to select.



147
148
149
150
151
# File 'lib/confection/project.rb', line 147

def controller(scope, tool, options={})
  profile = options[:profile]
  configs = store.lookup(tool, profile)
  Controller.new(scope, *configs)
end