Sha256: 70b3e78ed84035e4c3eda9820dc89d14543fd52884727273a7373e1593f7c625

Contents?: true

Size: 654 Bytes

Versions: 9

Compression:

Stored size: 654 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'
      )

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sfn-2.1.6 lib/sfn/config/events.rb
sfn-2.1.4 lib/sfn/config/events.rb
sfn-2.1.2 lib/sfn/config/events.rb
sfn-2.1.0 lib/sfn/config/events.rb
sfn-2.0.6 lib/sfn/config/events.rb
sfn-2.0.4 lib/sfn/config/events.rb
sfn-2.0.2 lib/sfn/config/events.rb
sfn-2.0.0 lib/sfn/config/events.rb
sfn-1.2.0 lib/sfn/config/events.rb