module SvelteOnRails::Installer::Utils

def self.run_command(command)

def self.run_command(command)
  Dir.chdir(Rails.root) do
    stdout, stderr, status = Open3.capture3(command)
    if stderr.present?
      puts "Error running command «#{command}»:"
      raise stderr
    else
      puts "#{command} => Success"
    end
  end
end