summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-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