class PoiseGit::Resources::PoiseGitClient::Resource
A `poise_git_client` resource to install a C compiler and build tools.
@provides poise_git_client @action install @action uninstall @example
poise_git_client 'git'
Public Instance Methods
git_binary()
click to toggle source
The path to the `git` binary for this Git installation. This is an output property.
@return [String] @example
execute "#{resources('poise_git_client[git]').git_binary} init"
# File lib/poise_git/resources/poise_git_client.rb, line 56 def git_binary provider_for_action(:git_binary).git_binary end
git_environment()
click to toggle source
The environment variables for this Git installation. This is an output property.
@return [Hash<String, String>]
# File lib/poise_git/resources/poise_git_client.rb, line 64 def git_environment provider_for_action(:git_environment).git_environment end
Private Instance Methods
default_version()
click to toggle source
Default value for the version property. Trims an optional `git-` from the resource name.
@return [String]
# File lib/poise_git/resources/poise_git_client.rb, line 74 def default_version name[/^(git-?)?(.*)$/, 2] || '' end