def require_rails_script(script, description)
      # Check that we're actually within a rails project directory
      script_path = File.join(Loops.root, script)
      unless File.exists?(script_path)
        puts
        puts "Error: missing Rails #{description}: #{script}"
        puts "Are you sure current directory is a root of a Rails project?"
        puts "Current dir: #{Loops.root}"
        puts
        exit(1)
      end

      # Load the script
      require(script_path)
    end
def require_rails_script(script, description)
      # Check that we're actually within a rails project directory
      script_path = File.join(Loops.root, script)
      unless File.exists?(script_path)
        puts
        puts "Error: missing Rails #{description}: #{script}"
        puts "Are you sure current directory is a root of a Rails project?"
        puts "Current dir: #{Loops.root}"
        puts
        exit(1)
      end

      # Load the script
      require(script_path)
    end
-----------------------------------------------------------------------------------------------
 Loads a ruby script from a Rails configuration directory