Skip to content

Commit

Permalink
Change rake tasks to improve descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Jul 26, 2023
1 parent b021896 commit 368942a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks/console.rake
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# frozen_string_literal: true

desc "Load gem inside irb console"
desc "Load gem inside IRB console"
task :console do
require "irb"
require "irb/completion"
require File.join(__FILE__, "../../lib/slideck")
require_relative "../lib/slideck"
ARGV.clear
IRB.start
end

desc "Alias for the :console task"
task c: :console
1 change: 1 addition & 0 deletions tasks/spec.rake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ begin
end
rescue LoadError
%w[spec spec:unit spec:integration spec:perf].each do |name|
desc "Run #{name == "spec" ? "all" : name.split(":").last} specs"
task name do
warn "In order to run #{name}, do `gem install rspec`"
end
Expand Down

0 comments on commit 368942a

Please sign in to comment.