Sha256: 8d6d23fdd01ca4f6bcf32a7640bb149dc209e1dfaaaf1b5f7e87b61e8c0963b2

Contents?: true

Size: 813 Bytes

Versions: 6

Compression:

Stored size: 813 Bytes

Contents

require "sfn"

module Sfn
  class Config
    # Events command configuration
    class Events < Config
      attribute(
        :attribute, String,
        :multiple => true,
        :description => "Event attribute to display",
        :short_flag => "a",
      )
      attribute(
        :poll_delay, Integer,
        :default => 20,
        :description => "Seconds to pause between each event poll",
        :coerce => lambda { |v| v.to_i },
        :short_flag => "P",
      )
      attribute(
        :all_attributes, [TrueClass, FalseClass],
        :description => "Display all event attributes",
        :short_flag => "A",
      )
      attribute(
        :all_events, [TrueClass, FalseClass],
        :description => "Display all available events",
        :short_flag => "L",
      )
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sfn-3.1.8 lib/sfn/config/events.rb
sfn-3.1.6 lib/sfn/config/events.rb
sfn-3.1.4 lib/sfn/config/events.rb
sfn-3.1.2 lib/sfn/config/events.rb
sfn-3.1.0 lib/sfn/config/events.rb
sfn-3.0.32 lib/sfn/config/events.rb