Top Level Namespace
Defined Under Namespace
Modules: Itamae
Constant Summary collapse
- DEFAULT_RBENV_ROOT =
"/usr/local/anyenv".freeze
Instance Method Summary collapse
Instance Method Details
#anyenv_init ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/itamae/plugin/recipe/anyenv.rb', line 10 def anyenv_init <<-EOS export ANYENV_ROOT=#{anyenv_root} export PATH="#{anyenv_root}/bin:${PATH}" eval "$(anyenv init -)" EOS end |
#anyenv_root ⇒ Object
3 4 5 6 7 8 |
# File 'lib/itamae/plugin/recipe/anyenv.rb', line 3 def anyenv_root if node[:anyenv] && node[:anyenv][:anyenv_root] return node[:anyenv][:anyenv_root] end DEFAULT_RBENV_ROOT end |