Class: Quadtone::Tools::Rename
- Inherits:
-
Quadtone::Tool
- Object
- Quadtone::Tool
- Quadtone::Tools::Rename
- Defined in:
- lib/quadtone/tools/rename.rb
Instance Attribute Summary
Attributes inherited from Quadtone::Tool
Instance Method Summary collapse
Methods inherited from Quadtone::Tool
#load_profile, #parse_global_option, #parse_option, process_args, #process_environment
Instance Method Details
#run(*args) ⇒ Object
7 8 9 10 11 |
# File 'lib/quadtone/tools/rename.rb', line 7 def run(*args) new_name = args.shift or raise "Must specify new name" new_path = Profile::ProfilesDir + new_name @profile.dir_path.rename(new_path) end |