Method: Nucleus::Adapters::GitDeployer#initialize

Defined in:
lib/nucleus/core/file_handling/git_deployer.rb

#initialize(repo_name, repo_url, user_email, repo_branch = 'master') ⇒ GitDeployer

Initialize a new instance of the GitDeployer

Parameters:

  • user_email (String)

    email address of the user, used as author of commits

  • repo_url (String)

    address where the repository can be retrieved

  • repo_name (String)

    name of the directory for the repository that shall be created in the tmp dir

  • repo_branch (String) (defaults to: 'master')

    branch to push to



11
12
13
14
15
16
# File 'lib/nucleus/core/file_handling/git_deployer.rb', line 11

def initialize(repo_name, repo_url, user_email, repo_branch = 'master')
  @repo_name = repo_name
  @repo_url = repo_url
  @repo_branch = repo_branch
  @user_email = user_email
end