Merge pull request #538 from warpc/537-fixed_publish
#537 Убираем вызов к ядру при проверке возможности публикации.
This commit is contained in:
commit
4a23ae8897
|
@ -182,6 +182,10 @@ class BuildList < ActiveRecord::Base
|
|||
[BUILD_PENDING, BuildServer::PLATFORM_PENDING].include? status && bs_id
|
||||
end
|
||||
|
||||
def can_publish?
|
||||
[BuildServer::SUCCESS, FAILED_PUBLISH].include? status
|
||||
end
|
||||
|
||||
def can_reject_publish?
|
||||
can_publish? and save_to_platform.released
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue