forked from thirdwavellc/chef-lsyncd
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
15 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
inherit_from: .rubocop_todo.yml | ||
AllCops: | ||
Exclude: | ||
- 'metadata.rb' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
source "https://supermarket.getchef.com" | ||
source 'https://supermarket.getchef.com' | ||
|
||
metadata | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
source "https://rubygems.org" | ||
source 'https://rubygems.org' | ||
|
||
gem 'berkshelf' | ||
gem 'serverspec' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
task default: "all" | ||
task default: 'all' | ||
|
||
desc "Run all tests" | ||
desc 'Run all tests' | ||
task all: [:rubocop, :foodcritic, :chefspec] | ||
|
||
# rubocop style checker | ||
require "rubocop/rake_task" | ||
require 'rubocop/rake_task' | ||
RuboCop::RakeTask.new | ||
|
||
# foodcritic chef lint | ||
require "foodcritic" | ||
require 'foodcritic' | ||
FoodCritic::Rake::LintTask.new do |t| | ||
t.options = { fail_tags: ["any"] } | ||
t.options = { fail_tags: ['any'] } | ||
end | ||
|
||
# chefspec unit tests | ||
require "rspec/core/rake_task" | ||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:chefspec) do |t| | ||
t.rspec_opts = "--color --format progress" | ||
t.rspec_opts = '--color --format progress' | ||
end | ||
|
||
# test-kitchen integration tests | ||
begin | ||
require "kitchen/rake_tasks" | ||
require 'kitchen/rake_tasks' | ||
Kitchen::RakeTasks.new | ||
rescue LoadError | ||
task("kitchen:all") { puts "Unable to run `test-kitchen`" } | ||
task('kitchen:all') { puts 'Unable to run `test-kitchen`' } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,3 @@ | |
supports start: true, stop: true, restart: true, status: true | ||
action [:enable, :start] | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters