class SolrMakr::ApplicationAction::Configurator

@api private

Attributes

action[R]

Public Class Methods

new(action) click to toggle source
# File lib/solr_makr/application_action.rb, line 158
def initialize(action)
  @action = action
end

Public Instance Methods

default_options(&formatter) click to toggle source
# File lib/solr_makr/application_action.rb, line 170
def default_options(&formatter)
  @action.default_options_formatter = formatter
end
description(new_description) click to toggle source
# File lib/solr_makr/application_action.rb, line 162
def description(new_description)
  @action.description = new_description.to_s
end
format_command(&formatter) click to toggle source
# File lib/solr_makr/application_action.rb, line 166
def format_command(&formatter)
  @action.command_formatter = formatter
end
option(name, **attributes, &configurator) click to toggle source
# File lib/solr_makr/application_action.rb, line 174
def option(name, **attributes, &configurator)
  @action.add_option!(name, **attributes, &configurator)
end