Module: McptaskRailsRunner
- Defined in:
- lib/mcptask_rails_runner.rb,
lib/mcptask_rails_runner/binary.rb,
lib/mcptask_rails_runner/railtie.rb,
lib/mcptask_rails_runner/version.rb
Defined Under Namespace
Modules: Binary Classes: Error, Railtie
Constant Summary collapse
- VERSION =
The gem version is pinned 1:1 to the mcptask_runner binary release it carries (tag v#VERSION in jchsoft/mcptask-releases). Bump both together.
"0.2.4"
Class Method Summary collapse
-
.piece_id!(value, name, example) ⇒ Object
Validates a rake bracket argument such as manual:story.
Class Method Details
.piece_id!(value, name, example) ⇒ Object
Validates a rake bracket argument such as manual:story.
9 10 11 12 13 14 |
# File 'lib/mcptask_rails_runner.rb', line 9 def self.piece_id!(value, name, example) id = Integer(value, exception: false) raise ArgumentError, "#{name} is required and must be a positive integer (usage: rake '#{example}')" if id.nil? || id < 1 id.to_s end |