class AppUtils
Public Class Methods
execute(command, should_exit=true)
click to toggle source
# File lib/gito/app_utils.rb, line 5 def self.execute(command, should_exit=true) is_success = system command unless is_success puts "\n\n======================================================\n\n" puts ' Something went wrong while executing this:'.red puts " $ #{command}\n".yellow puts "======================================================\n" exit 1 if should_exit end end
is_folder?(path)
click to toggle source
# File lib/gito/app_utils.rb, line 16 def self.is_folder? (path) File.directory?(path) end