Sha256: 51911baf11bd4abf01f2673c08ad550225ee177df4e12abfb47c50f23dd384fa

Contents?: true

Size: 492 Bytes

Versions: 7

Compression:

Stored size: 492 Bytes

Contents

# encoding: UTF-8

# Global requires
require 'multi_json'
require 'pmap'

# Local requires
require 'gooddata/models/models'

module ProcessHelper
  PROCESS_ID = '81fa71a4-69fd-4c58-aa09-66e7f53f4647'
  DEPLOY_NAME = 'graph.grf'

  class << self
    def remove_old_processes(project)
      processes = project.processes
      processes.pmap do |process|
        next if process.obj_id == PROCESS_ID
        puts "Deleting #{process.inspect}"
        process.delete
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gooddata-0.6.18 spec/helpers/process_helper.rb
gooddata-0.6.17 spec/helpers/process_helper.rb
gooddata-0.6.16 spec/helpers/process_helper.rb
gooddata-0.6.15 spec/helpers/process_helper.rb
gooddata-0.6.14 spec/helpers/process_helper.rb
gooddata-0.6.13 spec/helpers/process_helper.rb
gooddata-0.6.12 spec/helpers/process_helper.rb