Sha256: 271f2c49c3bf6a51b01a16eefdd2018bc331ecc6e7385303a8932802899a80f3
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
from_project_name = read_project_name from_repository_name = read_repository_name to_project_name = read_project_name to_repository_name = read_repository_name from_dir = find_repository_dir(from_project_name, from_repository_name) to_dir = find_repository_dir(to_project_name, to_repository_name) authorize(from_project_name, 'admin') authorize(to_project_name, 'admin') if not File.exist?(from_dir) error 4, "Repository not found" end if File.exist?(to_dir) error 4, "Repository already exists with that name" end FileUtils.mv(from_dir, to_dir)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hubbard-0.0.18 | commands/move-repository.rb |