summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-07-02 10:25:16 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-07-02 10:25:16 -0700
commit35603c7ce1bd3ccf35334ed65152140f0ecaf080 (patch)
tree452c84ce196ce00d672c71a8fa65f86c5a074fac /tasks
parenteda2808dce8146bfdb308dd658b1dd565df3562b (diff)
downloadchef-35603c7ce1bd3ccf35334ed65152140f0ecaf080.tar.gz
fix Style/HashSyntax
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'tasks')
-rw-r--r--tasks/cbgb.rb2
-rw-r--r--tasks/dependencies.rb8
-rw-r--r--tasks/maintainers.rb4
-rw-r--r--tasks/rspec.rb4
4 files changed, 9 insertions, 9 deletions
diff --git a/tasks/cbgb.rb b/tasks/cbgb.rb
index 09363b42d2..801739a6af 100644
--- a/tasks/cbgb.rb
+++ b/tasks/cbgb.rb
@@ -25,7 +25,7 @@ CBGB_TARGET = File.join(File.dirname(__FILE__), "..", "CBGB.md")
begin
require "tomlrb"
- task :default => :generate
+ task default: :generate
namespace :cbgb do
desc "Generate MarkDown version of CBGB file"
diff --git a/tasks/dependencies.rb b/tasks/dependencies.rb
index 93b357af82..12beab9808 100644
--- a/tasks/dependencies.rb
+++ b/tasks/dependencies.rb
@@ -37,7 +37,7 @@ namespace :dependencies do
# Update all dependencies to the latest constraint-matching version
desc "Update all dependencies. dependencies:update to update as little as possible (CI-only)."
- task :update_ci => %w{
+ task update_ci: %w{
dependencies:update_gemfile_lock
dependencies:update_omnibus_gemfile_lock
dependencies:update_audit_tests_berksfile_lock
@@ -87,6 +87,6 @@ namespace :dependencies do
end
desc "Update all dependencies and check for outdated gems."
-task :dependencies_ci => [ "dependencies:update_ci" ]
-task :dependencies => [ "dependencies:update" ]
-task :update => [ "dependencies:update" ]
+task dependencies_ci: [ "dependencies:update_ci" ]
+task dependencies: [ "dependencies:update" ]
+task update: [ "dependencies:update" ]
diff --git a/tasks/maintainers.rb b/tasks/maintainers.rb
index d2fc482a28..1adac47ecc 100644
--- a/tasks/maintainers.rb
+++ b/tasks/maintainers.rb
@@ -33,7 +33,7 @@ begin
require "pp"
namespace :maintainers do
- task :default => :generate
+ task default: :generate
desc "Generate MarkDown version of MAINTAINERS file"
task :generate do
@@ -63,7 +63,7 @@ begin
end
def github
- @github ||= Octokit::Client.new(:netrc => true)
+ @github ||= Octokit::Client.new(netrc: true)
end
def source
diff --git a/tasks/rspec.rb b/tasks/rspec.rb
index 848c50eb40..afd7d12705 100644
--- a/tasks/rspec.rb
+++ b/tasks/rspec.rb
@@ -35,9 +35,9 @@ begin
end
end
- task :default => :spec
+ task default: :spec
- task :spec => :component_specs
+ task spec: :component_specs
desc "Run standard specs (minus long running specs)"
RSpec::Core::RakeTask.new(:spec) do |t|