Module: Action::SetProjectAndBranch

Instance Method Summary collapse

Instance Method Details

#set_project_and_branch(params) ⇒ Object


5
6
7
8
9
10
11
# File 'app/services/action/set_project_and_branch.rb', line 5

def set_project_and_branch(params)
  finder = InchCI::Action::FindProjectAndBranch.call(params)
  unless finder.project.nil?
    @project = ProjectPresenter.new(finder.project)
    @branch = finder.branch
  end
end