Sha256: ba59f01e9b1970e6506049d0bf8399768d68e25bb479b15dc63769be0e9ad337
Contents?: true
Size: 497 Bytes
Versions: 14
Compression:
Stored size: 497 Bytes
Contents
Bookmark.without_auditing do [ { :name => 'running', :query => 'state = running' }, { :name => 'failed', :query => 'state = paused or result = error or result = warning' } ].each do |item| next if Bookmark.where(:name => item[:name]).first next if audit_modified? Bookmark, item[:name] b = Bookmark.create({ :controller => 'foreman_tasks_tasks', :public => true }.merge(item)) raise "Unable to create bookmark: #{format_errors b}" if b.nil? || b.errors.any? end end
Version data entries
14 entries across 14 versions & 1 rubygems