Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Stromweld committed Mar 3, 2024
1 parent 839f1d0 commit 30efcff
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 27 deletions.
2 changes: 0 additions & 2 deletions attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# frozen_string_literal: true

#
# Cookbook:: chef_software
# Attributes:: default
Expand Down
2 changes: 0 additions & 2 deletions libraries/helpers.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# frozen_string_literal: true

module ChefSoftware
module Helpers
def get_iam_user(user)
Expand Down
2 changes: 0 additions & 2 deletions recipes/chef_automatev2.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# frozen_string_literal: true

#
# Cookbook:: chef_software
# Recipe:: chef_automatev2
Expand Down
6 changes: 1 addition & 5 deletions recipes/chef_server.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# frozen_string_literal: true

#
# Cookbook:: chef_software
# Recipe:: chef_server
Expand Down Expand Up @@ -34,9 +32,7 @@
if node['chef_software']['chef_automate_api_fqdn'] && node['chef_software']['automate_admin_token']
execute 'set data_collector token' do
command "chef-server-ctl set-secret data_collector token '#{node['chef_software']['automate_admin_token']}'"
not_if do
shell_out('chef-server-ctl show-secret data_collector token').stdout.include?(node['chef_software']['automate_admin_token'])
end
not_if { shell_out('chef-server-ctl show-secret data_collector token').stdout.include?(node['chef_software']['automate_admin_token']) }
notifies :run, 'execute[chef-server-ctl restart nginx]', :immediately
notifies :run, 'execute[chef-server-ctl restart opscode-erchef]', :immediately
sensitive true
Expand Down
2 changes: 0 additions & 2 deletions recipes/chef_supermarket.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# frozen_string_literal: true

#
# Cookbook:: chef_software
# Recipe:: chef_supermarket
Expand Down
2 changes: 0 additions & 2 deletions recipes/default.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# frozen_string_literal: true

#
# Cookbook:: chef_software
# Recipe:: default
Expand Down
2 changes: 0 additions & 2 deletions resources/iam_policy.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# frozen_string_literal: true

# To learn more about Custom Resources, see https://docs.chef.io/custom_resources.html
#
# Author:: Corey Hemminger
Expand Down
2 changes: 0 additions & 2 deletions resources/iam_user.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# frozen_string_literal: true

# To learn more about Custom Resources, see https://docs.chef.io/custom_resources.html
#
# Author:: Corey Hemminger
Expand Down
2 changes: 0 additions & 2 deletions test/integration/chef_automate/test_chef_automatev2_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# frozen_string_literal: true

describe file('/usr/local/bin/chef-automate') do
it { should_not exist }
end
Expand Down
2 changes: 0 additions & 2 deletions test/integration/chef_server/test_chef_server_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# frozen_string_literal: true

describe package('chef-server-core') do
it { should be_installed }
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# frozen_string_literal: true

describe package('supermarket') do
it { should be_installed }
end
Expand Down
2 changes: 0 additions & 2 deletions test/integration/default/default_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# frozen_string_literal: true

# InSpec test for recipe xe_chef_automate_role::default

# The InSpec reference, with examples and extensive documentation, can be
Expand Down

0 comments on commit 30efcff

Please sign in to comment.