Skip to content

Commit

Permalink
Remove Mel::Job::Template#run
Browse files Browse the repository at this point in the history
Ensures the built-in compile error message is shown when a job's
`#run` method is not defined.
  • Loading branch information
akadusei committed Sep 11, 2023
1 parent bdcbdb1 commit 01cf5b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
- Add `Mel::Progress::Report.new(Indexable(String))` overload

## Removed
- Remove `Mel::Job::Template#run`

## [0.11.0] - 2023-08-26

### Changed
Expand Down
4 changes: 0 additions & 4 deletions src/mel/job/template.cr
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ module Mel::Job::Template

@__type__ : String = name

def run
\{% raise "#{@type}#run not implemented" %}
end

def before_run
end

Expand Down

0 comments on commit 01cf5b2

Please sign in to comment.