summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-07-30 15:39:40 -0700
committerTim Smith <tsmith@chef.io>2018-07-30 15:39:40 -0700
commitfe2dc71a60d4f5ecd725be864966971a108552c9 (patch)
tree936353f40faf31f67bbbd99b379f4ec76f264b71
parentc192bf0b389a484d9aa9bd88f8831d92777a6d98 (diff)
downloadmixlib-authentication-fe2dc71a60d4f5ecd725be864966971a108552c9.tar.gz
Add the actual rake updates
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--Rakefile26
1 files changed, 22 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 7be508e..d6c0027 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,9 +1,14 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
-RSpec::Core::RakeTask.new(:spec)
+task default: [:style, :spec]
-task default: :spec
+Bundler::GemHelper.install_tasks
+
+desc "Run specs"
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = "spec/**/*_spec.rb"
+end
begin
require "chefstyle"
@@ -12,7 +17,20 @@ begin
task.options += ["--display-cop-names", "--no-color"]
end
rescue LoadError
- puts "chefstyle/rubocop is not available."
+ puts "chefstyle/rubocop is not available. bundle install first to make sure all dependencies are installed."
end
-task ci: [:style, :spec]
+begin
+ require "yard"
+ YARD::Rake::YardocTask.new(:docs)
+rescue LoadError
+ puts "yard is not available. bundle install first to make sure all dependencies are installed."
+end
+
+task :console do
+ require "irb"
+ require "irb/completion"
+ require "mixlib/authentication"
+ ARGV.clear
+ IRB.start
+end