Sha256: 11bebe94eb0d8f2457e9287b8bba19cdf05aaf4b11b3b68cd56c22e8138d44ee

Contents?: true

Size: 784 Bytes

Versions: 1

Compression:

Stored size: 784 Bytes

Contents

package "git"

scheme = "git"
scheme = node[:anyenv][:scheme] if node[:anyenv][:scheme]

require 'itamae/plugin/recipe/anyenv'

git anyenv_root do
  repository "#{scheme}://github.com/riywo/anyenv.git"
end

git "#{anyenv_root}/plugins/anyenv-update" do
  repository "#{scheme}://github.com/znz/anyenv-update.git"
end

directory "#{anyenv_root}/envs"

node[:anyenv][:install_envs].each do |env|
  execute "install #{env}" do
    command "#{anyenv_init} anyenv install #{env}"
    not_if "type #{env}"
  end
end

node[:anyenv][:install_versions].each do |envs|
  envs.each do |name, vers|
    vers.each do |ver|
      execute "#{name} install #{ver}" do
        command "#{name} install #{ver}"
        not_if "#{anyenv_init} #{name} versions | grep #{ver}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itamae-plugin-recipe-anyenv-0.1.11 lib/itamae/plugin/recipe/anyenv/system.rb