class VersionManager::RakeTask
Constants
- EXAMPLES
Public Class Methods
new(task_namespace = :release) { |configuration| ... }
click to toggle source
rubocop: disable Metrics/MethodLength
# File lib/version_manager/rake_task.rb, line 14 def initialize task_namespace = :release yield(VersionManager.configuration) if block_given? namespace task_namespace do [:major, :minor, :patch].each do |v| desc "Increment your #{v} version number eg #{EXAMPLES[v]}" task v do VersionUpdater.new.call(v) end end end end