Sha256: 498fe86225166bcd81b711c576f1e90e00affe521db224601f4961be04052477
Contents?: true
Size: 343 Bytes
Versions: 1
Compression:
Stored size: 343 Bytes
Contents
from_project_name = read_project_name to_project_name = next_arg "Please specify the new project name" from_dir = find_project_dir(from_project_name) to_dir = find_project_dir(to_project_name) if File.exist?(to_dir) error 3, "A project already exists with that name" end authorize(from_project_name, 'admin') FileUtils.mv(from_dir, to_dir)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hubbard-0.0.18 | commands/rename-project.rb |