Class: MountainBerryFields::RakeTask
- Inherits:
-
Object
- Object
- MountainBerryFields::RakeTask
- Includes:
- Rake::DSL
- Defined in:
- lib/mountain_berry_fields/rake_task.rb
Instance Method Summary collapse
-
#initialize(task_name, input_file_name) ⇒ RakeTask
constructor
A new instance of RakeTask.
Constructor Details
#initialize(task_name, input_file_name) ⇒ RakeTask
Returns a new instance of RakeTask.
5 6 7 8 9 10 |
# File 'lib/mountain_berry_fields/rake_task.rb', line 5 def initialize(task_name, input_file_name) desc("Test and generate #{input_file_name}") unless ::Rake.application.last_comment task task_name do sh "mountain_berry_fields #{input_file_name}" end end |