Sha256: 2b6ba2e6f7b97a2fe8f6071d1062d823249bbed07419495f25f66aa16c15780a

Contents?: true

Size: 700 Bytes

Versions: 35

Compression:

Stored size: 700 Bytes

Contents

module Spider; module Master
    
    class Command < Spider::Model::Managed
        element :installation, Installation, :add_multiple_reverse => :commands
        element :uuid, UUID
        element :name, String
        element :arguments, Text
        element :status, {
            'pending' => 'Pending',
            'sent' => 'Sent',
            'success' => 'Success',
            'failure' => 'Failure',
            'not_done' => 'Not done'
        }, :default => 'pending'
        element :sent, DateTime
        element :done, DateTime
        element :result, Text
        
        def to_s
            "#{self.name} '#{self.arguments}' - #{self.status}"
        end
    end
    
end; end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
spiderfw-1.0.1 apps/master/models/command.rb
spiderfw-1.0.0 apps/master/models/command.rb
spiderfw-0.6.39 apps/master/models/command.rb
spiderfw-0.6.38 apps/master/models/command.rb
spiderfw-0.6.37 apps/master/models/command.rb
spiderfw-0.6.35 apps/master/models/command.rb
spiderfw-0.6.34 apps/master/models/command.rb
spiderfw-0.6.33 apps/master/models/command.rb
spiderfw-0.6.32 apps/master/models/command.rb
spiderfw-0.6.31 apps/master/models/command.rb
spiderfw-0.6.30 apps/master/models/command.rb
spiderfw-0.6.29 apps/master/models/command.rb
spiderfw-0.6.28 apps/master/models/command.rb
spiderfw-0.6.27 apps/master/models/command.rb
spiderfw-0.6.26 apps/master/models/command.rb
spiderfw-0.6.26.pre1 apps/master/models/command.rb
spiderfw-0.6.25 apps/master/models/command.rb
spiderfw-0.6.24 apps/master/models/command.rb
spiderfw-0.6.23 apps/master/models/command.rb
spiderfw-0.6.22 apps/master/models/command.rb