Sha256: e54ccca359a1cae4366bb7e2e88dc87f74579b234be448b7ea0834e4dab75ecd

Contents?: true

Size: 653 Bytes

Versions: 1

Compression:

Stored size: 653 Bytes

Contents

module Orchestrator
    class EdgeControl < Couchbase::Model
        design_document :edge
        include ::CouchbaseId::Generator


        attribute :name
        attribute :description
        attribute :failover
        attribute :timeout,     default: 30
        attribute :window_start   # CRON string
        attribute :window_length  # Time in seconds
        attribute :settings,    default: lambda { {} }
        attribute :admins,      default: lambda { [] }
        attribute :commit         # Current commit

        attribute :created_at,  default: lambda { Time.now.to_i }


        def online?(id)
            
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
orchestrator-1.0.3 app/models/orchestrator/edge_control.rb