Class: Quadtone::Tools::Edit
- Inherits:
-
Quadtone::Tool
- Object
- Quadtone::Tool
- Quadtone::Tools::Edit
- Defined in:
- lib/quadtone/tools/edit.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 ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/quadtone/tools/edit.rb', line 7 def run # editor = ENV['EDITOR'] or raise "Can't determine editor" editor = 'subl' Quadtone.run(editor, '--wait', @profile.qtr_profile_path) @profile = Profile.load(@profile.qtr_profile_path) @profile.check @profile.save @profile.show end |