Sha256: 1ccc0ebcc4c98629bc49a29d996fd7a0dc212507d57cee1cd4deacb2281e9ef1

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

require 'net/http'
require "uri"

module Perkins
  class GitLoaderWorker

    include Sidekiq::Worker

    def perform(repo_id)
      repo = Perkins::Repo.find(repo_id)
      #return if repo.downloading? or repo.downloaded?
      #it actually clone repo and instantiates git data
      repo.load_git
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
perkins-0.0.5 lib/perkins/git_loader_worker.rb