RubyMine specific development instructions - uyuni-project/uyuni GitHub Wiki
RubyMine
This is a short tutorial on how to setup development with RubyMine on openSUSE (tested with Tumbleweed).
License
You need a license for RubyMine when using it commercially.
Installation
- Flatpak: https://flathub.org/apps/com.jetbrains.RubyMine
- JetBrains ToolBox: https://www.jetbrains.com/help/ruby/installation-guide.html#eyw59x_89
- Snap: https://snapcraft.io/install/rubymine/opensuse (performance degradation, see https://www.jetbrains.com/help/ruby/installation-guide.html#snap)
Installing Ruby 3.3
You should use this Ruby version when developing, since this is the version that is used on the deployed VMs. You can use the below steps, or use the package manager of your operating system or Homebrew for macOS.
# fetch rvm
\curl -sSL https://get.rvm.io | bash -s stable
# install Ruby 3.3
rvm install 3.3.5
# list installed Ruby versions
rvm list
# use Ruby 3.3.5
rvm use ruby-3.3.5
Building and installing twopence
# install bundler
gem install bundler
# go to the spacewalk/testsuite folder
cd ~/git/spacewalk/testsuite
# install the required gems (Gemfile) with bundler
bundle install
Setup Ruby SDK
This has to be done inside RubyMine.
Got to: file → settings → Languages and Frameworks → Ruby SDK and gems Select Ruby version 3.3.5 since the controller uses this version
Setup login shell
This has to be done inside RubyMine.
Got to file → settings → Tools → Terminal → Application settings -> Shell path: /bin/zsh --login
(or /bin/bash --login
)