Class: Action::Project::UpdateInfo

Inherits:
Object
  • Object
show all
Includes:
SetProjectAndBranch, InchCI::Action
Defined in:
app/services/action/project/update_info.rb

Instance Method Summary collapse

Methods included from SetProjectAndBranch

#set_project_and_branch

Methods included from InchCI::Action

#exposures, included

Constructor Details

#initialize(current_user, params) ⇒ UpdateInfo

Returns a new instance of UpdateInfo.


11
12
13
14
15
16
17
# File 'app/services/action/project/update_info.rb', line 11

def initialize(current_user, params)
  set_project_and_branch(params)
  update_project
  if current_user && @project.user_name == current_user.user_name
    update_hook(current_user.github_access_token)
  end
end