Skip to content

Commit

Permalink
Add description to rake tasks
Browse files Browse the repository at this point in the history
Also add a simple "list" task, just to be able to easily check what will
happen with the other two tasks using that list.
  • Loading branch information
dentarg committed Jul 31, 2024
1 parent 3da61bd commit 9eae348
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# frozen_string_literal: true

require 'bundler/setup'
require 'support/projects'
require 'mustermann/version'

desc 'Run rspec'
task(:rspec) { ruby '-S rspec' }

desc 'Run "yard stats"'
task(:doc_stats) { ruby '-S yard stats' }

task default: [:rspec, :doc_stats]

desc 'Build the gems'
task :pkg do
require 'bundler/setup'
require 'support/projects'
require 'mustermann/version'

rm_rf 'pkg'
mkdir 'pkg'

Expand All @@ -18,10 +25,19 @@ task :pkg do
end
end

desc 'Push the gems'
task release: :pkg do
cd 'pkg' do
Support::Projects.each do |project|
ruby "-S gem push #{project}-#{Mustermann::VERSION}.gem"
end
end
end

desc 'List projects'
task :list do
puts "Listing mustermann project..."
Support::Projects.each do |project|
puts "#{project} VERSION: #{Mustermann::VERSION}"
end
end

0 comments on commit 9eae348

Please sign in to comment.