Method: Roger::Generators::NewGenerator#validate_path_is_empty

Defined in:
lib/roger/generators/new.rb

#validate_path_is_emptyObject



29
30
31
32
33
34
# File 'lib/roger/generators/new.rb', line 29

def validate_path_is_empty
  return unless File.directory?(destination_root)

  say "Directory #{destination_root} already exists, please only use this to create new projects"
  exit(1)
end