Class: Greenhouse::Tasks::SyncProject

Inherits:
Object
  • Object
show all
Includes:
ProjectTask, Task
Defined in:
lib/greenhouse/tasks/sync_project.rb

Instance Method Summary collapse

Methods included from ProjectTask

included

Methods included from Task

included

Instance Method Details

#perform(project, force = false) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/greenhouse/tasks/sync_project.rb', line 7

def perform(project, force=false)
  @project = project

  if @project.exists?
    pull(force) && bundle
    push(force)
  else
    clone && bundle
  end
end