lib/itamae/plugin/recipe/rtn_rbenv/user.rb in itamae-plugin-recipe-rtn_rbenv-0.1.4 vs lib/itamae/plugin/recipe/rtn_rbenv/user.rb in itamae-plugin-recipe-rtn_rbenv-0.1.5

- old
+ new

@@ -4,10 +4,11 @@ # load setting RBENV_USER = (node['rtn_rbenv']['user'] || 'vagrant') RBENV_USER_HOME = "/home/#{RBENV_USER}" RBENV_ROOT = "#{RBENV_USER_HOME}/.rbenv" -RBENV_PROFILE_PATH = "#{RBENV_USER_HOME}/.bash_profile" +RBENV_PROFILE_NAME = (node['rtn_rbenv']['profile'] || '.bash_profile') +RBENV_PROFILE_PATH = "#{RBENV_USER_HOME}/#{RBENV_PROFILE_NAME}" # install rbenv and ruby_build rbenv_install RBENV_ROOT do user RBENV_USER profile_path RBENV_PROFILE_PATH