Skip to content

Instantly share code, notes, and snippets.

@sandeeplearner
Created August 17, 2020 22:26
Show Gist options
  • Save sandeeplearner/248a20c3a74527f5df9ac8f7289564be to your computer and use it in GitHub Desktop.
Save sandeeplearner/248a20c3a74527f5df9ac8f7289564be to your computer and use it in GitHub Desktop.
copy proto files to project
#!/usr/bin/ruby
def copy_files_to_folder(group)
puts "Current directory is #{group.path} and real path is #{group.real_path}"
FileUtils.cp_r(File.join(Dir.home, "Documents", "GitClone", "SwiftProtoFiles"), group.real_path)
if Dir.exists?(File.join(group.real_path, @proto_group_name))
add_group_to_project(group, @proto_group_name, @project)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment