class PoiseGit::GitClientProviders::Base

The provider base class for `poise_git_client`.

@see PoiseGit::Resources::PoiseGitClient::Resource @provides poise_git_client

Public Class Methods

default_inversion_options(node, new_resource) click to toggle source

Set default inversion options.

@api private

Calls superclass method
# File lib/poise_git/git_client_providers/base.rb, line 34
def self.default_inversion_options(node, new_resource)
  super.merge({
    version: new_resource.version,
  })
end

Public Instance Methods

action_install() click to toggle source

The `install` action for the `poise_git_client` resource.

@return [void]

# File lib/poise_git/git_client_providers/base.rb, line 43
def action_install
  notifying_block do
    install_git
  end
end
action_uninstall() click to toggle source

The `uninstall` action for the `poise_git_client` resource.

@return [void]

# File lib/poise_git/git_client_providers/base.rb, line 52
def action_uninstall
  notifying_block do
    uninstall_git
  end
end
git_binary() click to toggle source

The path to the `git` binary. This is an output property.

@abstract @return [String]

# File lib/poise_git/git_client_providers/base.rb, line 62
def git_binary
  raise NotImplementedError
end
git_environment() click to toggle source

The environment variables for this Git. This is an output property.

@return [Hash<String, String>]

# File lib/poise_git/git_client_providers/base.rb, line 69
def git_environment
  {}
end

Private Instance Methods

install_git() click to toggle source

Install git.

@abstract @return [void]

# File lib/poise_git/git_client_providers/base.rb, line 79
def install_git
  raise NotImplementedError
end
uninstall_git() click to toggle source

Uninstall git.

@abstract @return [void]

# File lib/poise_git/git_client_providers/base.rb, line 87
def uninstall_git
  raise NotImplementedError
end