Sha256: f67335b6393970bbf4b7c435fa182ae85908a155b355a98fd3beb848043b2205

Contents?: true

Size: 809 Bytes

Versions: 19

Compression:

Stored size: 809 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

19 entries across 19 versions & 1 rubygems

Version Path
sfn-3.0.28 lib/sfn/config/events.rb
sfn-3.0.26 lib/sfn/config/events.rb
sfn-3.0.24 lib/sfn/config/events.rb
sfn-3.0.22 lib/sfn/config/events.rb
sfn-3.0.20 lib/sfn/config/events.rb
sfn-3.0.18 lib/sfn/config/events.rb
sfn-3.0.16 lib/sfn/config/events.rb
sfn-3.0.14 lib/sfn/config/events.rb
sfn-3.0.12 lib/sfn/config/events.rb
sfn-3.0.10 lib/sfn/config/events.rb
sfn-3.0.8 lib/sfn/config/events.rb
sfn-3.0.6 lib/sfn/config/events.rb
sfn-3.0.4 lib/sfn/config/events.rb
sfn-3.0.2 lib/sfn/config/events.rb
sfn-3.0.0 lib/sfn/config/events.rb
sfn-2.2.0 lib/sfn/config/events.rb
sfn-2.1.12 lib/sfn/config/events.rb
sfn-2.1.10 lib/sfn/config/events.rb
sfn-2.1.8 lib/sfn/config/events.rb