<commit_before>include_recipe 'sprout-chruby'

sprout_base_bash_it_custom_plugin 'bash_it/custom/fast_bosh.bash'

def install_bosh_cli(ruby)
  command = Mixlib::ShellOut.new("chruby-exec #{ruby} -- gem list bosh_cli | grep bosh_cli", user: node['sprout']['user'])
  command.run_command
  return if command.exitstatus == 0

  execute "install bundler for #{ruby}" do
    command "bash -l -c 'chruby-exec #{ruby} -- gem install bundler'"
    user node['sprout']['user'] unless ruby == 'system'
  end

  execute "install bosh cli for #{ruby}" do
    command "chruby-exec #{ruby} -- gem install bosh_cli"
    user node['sprout']['user'] unless ruby == 'system'
  end
end

rubies = node['sprout']['chruby']['rubies']

rubies.each do |ruby_vm, ruby_versions|
  ruby_versions.each do |ruby_version|
    ruby = "#{ruby_vm}-#{ruby_version}"
    install_bosh_cli(ruby)
  end
end<commit_msg>Do not install bosh_cli in fast_bosh recipe<commit_after>sprout_base_bash_it_custom_plugin 'bash_it/custom/fast_bosh.bash'
{'fraction_non_alphanumeric': 0.13572854291417166, 'fraction_numerical': 0.000998003992015968, 'mean_word_length': 5.078787878787879, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4978480', 'n_tokens_mistral': 381, 'n_tokens_neox': 349, 'n_words': 83}