Sha256: 4f4a7c44844e480300657fd63fe9f602d826ac3765903c0027860c421fad6063

Contents?: true

Size: 607 Bytes

Versions: 1

Compression:

Stored size: 607 Bytes

Contents

node.reverse_merge!(
  git_now: {
    prefix: "/usr/local",
    scheme: "https",
  },
)

node[:git_now][:src] ||= "#{node[:git_now][:prefix]}/src"

package "git"
package "make"

case node[:platform]
when 'redhat'
  package "which"
end

install_dir = "#{node[:git_now][:src]}/git-now"

git install_dir do
  repository "#{node[:git_now][:scheme]}://github.com/iwata/git-now.git"
  revision   node[:git_now][:revision] if node[:git_now][:revision]
  recursive  true
end

execute "make prefix=#{node[:git_now][:prefix]} install" do
  cwd     install_dir
  not_if "ls #{node[:git_now][:prefix]}/bin/git-now"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itamae-plugin-recipe-git_now-1.0.0 lib/itamae/plugin/recipe/git_now/default.rb