Class: PgEventstore::CLI::ParserOptions::SubscriptionOptions

Inherits:
BaseOptions
  • Object
show all
Defined in:
lib/pg_eventstore/cli/parser_options/subscription_options.rb

Instance Method Summary collapse

Methods inherited from BaseOptions

#option, #to_parser_opts

Methods included from Extensions::OptionsExtension

included, #initialize, #options_hash, #readonly!, #readonly?

Instance Method Details

#attach_parser_handlers(parser) ⇒ void

This method returns an undefined value.

Parameters:

  • parser (OptionParser)


20
21
22
23
24
25
26
27
# File 'lib/pg_eventstore/cli/parser_options/subscription_options.rb', line 20

def attach_parser_handlers(parser)
  super
  %i[pid_path].each do |option|
    parser.on(*to_parser_opts(option)) do |value|
      public_send("#{option}=", value)
    end
  end
end