Sha256: 44ca352ade42cb705a81b616c0eee947b30ed59ca7a130e5ad51926f7fa50058

Contents?: true

Size: 416 Bytes

Versions: 11

Compression:

Stored size: 416 Bytes

Contents

require "swa/record"

module Swa
  module Glue

    class Crawler < Record

      def summary
        [
          pad(name, 48),
          pad(state, 10),
          pad(last_crawl_status, 12),
          role
        ].join("  ")
      end

      delegate :name
      delegate :state
      delegate :role

      def last_crawl_status
        aws_record.last_crawl&.status || "NEW"
      end
      
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
swa-0.8.3 lib/swa/glue/crawler.rb
swa-0.8.2 lib/swa/glue/crawler.rb
swa-0.8.1 lib/swa/glue/crawler.rb
swa-0.8.0 lib/swa/glue/crawler.rb
swa-0.7.7 lib/swa/glue/crawler.rb
swa-0.7.6 lib/swa/glue/crawler.rb
swa-0.7.5 lib/swa/glue/crawler.rb
swa-0.7.4 lib/swa/glue/crawler.rb
swa-0.7.3 lib/swa/glue/crawler.rb
swa-0.7.2 lib/swa/glue/crawler.rb
swa-0.7.1 lib/swa/glue/crawler.rb