Class: Deploy

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
app/models/deploy.rb

Instance Method Summary collapse

Instance Method Details

#resolve_app_errsObject


21
22
23
# File 'app/models/deploy.rb', line 21

def resolve_app_errs
  app.problems.unresolved.in_env(environment).each {|problem| problem.resolve!}
end

#short_revisionObject


25
26
27
# File 'app/models/deploy.rb', line 25

def short_revision
  revision.to_s[0,7]
end