Method: Pbw::AttachedProcess#update!

Defined in:
app/models/pbw/attached_process.rb

#update!Object



28
29
30
31
32
33
34
35
36
37
# File 'app/models/pbw/attached_process.rb', line 28

def update!
    return unless self.updatable && self.process && (self.token || self.area)
    unless self.updates_waiting > 0
        self.process.run!(token_or_area)
        destroy
    else
        self.updates_waiting = self.updates_waiting - 1
        save!
    end
end