Class: DeployKeys::CreateService

Inherits:
Keys::BaseService show all
Defined in:
app/services/deploy_keys/create_service.rb

Instance Attribute Summary

Attributes inherited from Keys::BaseService

#params, #user

Instance Method Summary collapse

Methods inherited from Keys::BaseService

#initialize, #notification_service

Constructor Details

This class inherits a constructor from Keys::BaseService

Instance Method Details

#execute(project: nil) ⇒ Object



5
6
7
# File 'app/services/deploy_keys/create_service.rb', line 5

def execute(project: nil)
  DeployKey.create(params.merge(user: user))
end