Я не понимаю, почему, когда я выполняю свой код, я выбрал первый вариант, который он оставил, ничего не делая. Ниже вы найдете код моего скрипта кристалла.
require "colorize"
class Application
def initialize
mainMenu
end
def mainMenu
puts "you are going to install the software?"
puts " 1: To install the soft you have to be root".colorize.fore(:red).bold
puts " 2: Modify module"
case gets
when "1"
puts "installation of the software.."
install_soft
when "2"
puts "you chose option2"
end
end
Application.new
end
Это код моего установочного модуля с методом install_soft. Он правильно печатает мой puts " you are .."
, но больше ничего не делает :(
module InstallSoft
def install_soft
puts "you are in def install_soft "
output = IO::Memory.new
Process.run("bash", args: {"eole/lib/bash_scripts/installation.sh"}, output: output)
output.close
output.to_s
end
end