Sha256: 39681fbf7102cdbceed975d76b6f9d905b33318e0d598e4a616f42d0708b7aee

Contents?: true

Size: 332 Bytes

Versions: 5

Compression:

Stored size: 332 Bytes

Contents

DEFAULT_RBENV_ROOT = "/usr/local/anyenv".freeze

def anyenv_root
  if node[:anyenv] && node[:anyenv][:anyenv_root]
    return node[:anyenv][:anyenv_root]
  end
  DEFAULT_RBENV_ROOT
end

def anyenv_init
  <<-EOS
    export ANYENV_ROOT=#{anyenv_root}
    export PATH="#{anyenv_root}/bin:${PATH}"
    eval "$(anyenv init -)"
  EOS
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
itamae-plugin-recipe-anyenv-0.1.12 lib/itamae/plugin/recipe/anyenv.rb
itamae-plugin-recipe-anyenv-0.1.11 lib/itamae/plugin/recipe/anyenv.rb
itamae-plugin-recipe-anyenv-0.1.10 lib/itamae/plugin/recipe/anyenv.rb
itamae-plugin-recipe-anyenv-0.1.9 lib/itamae/plugin/recipe/anyenv.rb
itamae-plugin-recipe-anyenv-0.1.8 lib/itamae/plugin/recipe/anyenv.rb