Class: Musicality::Tasks::FileRaker::Visual
- Inherits:
-
Musicality::Tasks::FileRaker
- Object
- Rake::TaskLib
- Musicality::Tasks::FileRaker
- Musicality::Tasks::FileRaker::Visual
- Defined in:
- lib/musicality/project/file_raker.rb
Instance Attribute Summary
Attributes inherited from Musicality::Tasks::FileRaker
#file_ext, #files, #subdirs, #task_name
Instance Method Summary collapse
-
#initialize(lilypond_files, visual_file_type) ⇒ Visual
constructor
A new instance of Visual.
Constructor Details
#initialize(lilypond_files, visual_file_type) ⇒ Visual
Returns a new instance of Visual.
106 107 108 109 110 111 112 113 |
# File 'lib/musicality/project/file_raker.rb', line 106 def initialize lilypond_files, visual_file_type super(lilypond_files, visual_file_type, ".#{visual_file_type}") do |t| ly_fpath = t.sources[0] out_dir = File.dirname(ly_fpath) sh "lilypond --output=\"#{out_dir}\" \"#{ly_fpath}\" --#{visual_file_type}" end end |