module VagrantPlugins
  module Ventriloquist
    module Cap
      module Linux
        module RvmInstallRuby
          def self.rvm_install_ruby(machine, version)
            if ! machine.communicate.test("rvm list | grep #{version}")
              machine.env.ui.info("Installing Ruby #{version}")
              machine.communicate.sudo("rvm install #{version}")
              # FIXME: THIS IS DEBIAN SPECIFIC
              machine.communicate.sudo("apt-get install -y libxslt1-dev")
            end
          end
        end
      end
    end
  end
end

module VagrantPlugins
  module Ventriloquist
    module Cap
      module Linux
        module RvmInstallRuby
          def self.rvm_install_ruby(machine, version)
            if ! machine.communicate.test("rvm list | grep #{version}")
              machine.env.ui.info("Installing Ruby #{version}")
              machine.communicate.execute("rvm install #{version}")
              # FIXME: THIS IS DEBIAN SPECIFIC
              machine.communicate.sudo("apt-get install -y libxslt1-dev")
            end
          end
        end
      end
    end
  end
end

Revert "Fix ruby installation with RVM"
Revert "Fix ruby installation with RVM"

This reverts commit 37eab68f0e31a6f4d5e1191920cebe43f3f79ecc.
