lib/system_description_store.rb in machinery-tool-1.13.0 vs lib/system_description_store.rb in machinery-tool-1.14.0

- old
+ new

@@ -72,9 +72,19 @@ validate_nonexistence_of_description(to) FileUtils.cp_r(description_path(from), description_path(to)) end + def move(from, to) + SystemDescription.validate_name(from) + SystemDescription.validate_name(to) + + validate_existence_of_description(from) + validate_nonexistence_of_description(to) + + FileUtils.mv(description_path(from), description_path(to)) + end + def backup(description_name) SystemDescription.validate_name(description_name) validate_existence_of_description(description_name) backup_name = get_backup_name(description_name)