Module: Gitw

Defined in:
lib/gitw.rb,
lib/gitw/exec.rb,
lib/gitw/git/url.rb,
lib/gitw/git_exe.rb,
lib/gitw/version.rb,
lib/gitw/git_opts.rb,
lib/gitw/git_error.rb,
lib/gitw/git/status.rb,
lib/gitw/repository.rb,
lib/gitw/git/remote_ref.rb,
lib/gitw/repository_error.rb

Overview

rubocop:disable Metrics/ClassLength, Metrics/MethodLength, Naming/PredicateName

Defined Under Namespace

Modules: AsAProcessStatus, Git Classes: Exec, ExecResult, GitAllowedOpt, GitError, GitExe, GitOpts, Repository, RepositoryError

Constant Summary collapse

VERSION =
'0.4.0'

Class Method Summary collapse

Class Method Details

.clone(from, to = nil, **options) ⇒ Object



17
18
19
# File 'lib/gitw.rb', line 17

def self.clone(from, to = nil, **options)
  Gitw::Repository.clone(from, to, **options)
end

.git_bin=(git_bin) ⇒ Object



25
26
27
# File 'lib/gitw.rb', line 25

def self.git_bin=(git_bin)
  Gitw::GitExe.git_bin = git_bin
end

.init(dir = '.', **options) ⇒ Object



13
14
15
# File 'lib/gitw.rb', line 13

def self.init(dir = '.', **options)
  Gitw::Repository.init(dir, **options)
end

.repository(directory, **options) ⇒ Object



21
22
23
# File 'lib/gitw.rb', line 21

def self.repository(directory, **options)
  Gitw::Repository.at(directory, **options)
end