I wrote my first ruby script, by this tutorial. It creates a local and remote git repo.I have been working for about 3 years with PHP, and somehow I find that my ruby script looks incredibly ugly.Is it correct to use a class for that? What can I make better? Are there any security gaps in it? Is the usage in for true and false in the empty_name? and folder_exists? methods correct?#!/usr/bin/env rubyrequire 'fileutils'#require 'colorize'class Repo  LOCAL_PATH = 'C:\xampp\htdocs'  REMOTE_PATH = 'C:\Users\Windows\Desktop\Dropbox\repos'  UPSTREAM_NAME = 'dropbox'  def initialize      print 'Name: '      @name = gets.chomp      if ! folder_exists?          create_local_repo          create_files_and_commit          create_remote_repo      end  end  private  # Check if name is emtpy.  def empty_name?      if @name.empty?          print You need to pass a name:           @name = gets.chomp          empty_name?          true      end      false  end  # Check if folder exists on local and remote path.  def folder_exists?      empty_name?      if File.exists? #{LOCAL_PATH}/#{@name}          print Directory `#{@name}` exists in #{LOCAL_PATH}. Pass a new name:           @name = gets.chomp          folder_exists?      elsif File.exists? #{REMOTE_PATH}/#{@name}.git          print Directory `#{@name}.git` exists in #{REMOTE_PATH}. Pass a new name:           @name = gets.chomp          folder_exists?      end      false  end  # Create local folder and initialize git.  def create_local_repo      Dir.chdir #{LOCAL_PATH} do `git init #{@name}` end  end  # Create .gitignore and commit.  def create_files_and_commit      Dir.chdir #{LOCAL_PATH}/#{@name} do          File.open .gitignore, 'w+' do |f|               f.write .idea\n/vendor\n/node_modules\n.Thumbs.db\n.DS_Store          end          `git add .`          `git commit -m initialize commit`      end  end  # Create empty remote repo.  def create_remote_repo      `git init --bare #{REMOTE_PATH}/#{@name}.git`      Dir.chdir #{LOCAL_PATH}/#{@name} do          `git remote add #{UPSTREAM_NAME} #{REMOTE_PATH}/#{@name}.git`          `git push -u #{UPSTREAM_NAME} master`      end  endendRepo.new
Ruby script to create git repos
beginner;ruby;file system;git