Skip to content

Commit b6fd030

Browse files
committed
Fix cookstyle errors
Signed-off-by: Francesco De Martino <[email protected]>
1 parent 3de46ca commit b6fd030

File tree

104 files changed

+330
-350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+330
-350
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ rescue LoadError
2626
end
2727

2828
# default tasks are quick, commit tests
29-
task default: %w[cookstyle rubocop chefspec]
29+
task default: %w(cookstyle rubocop chefspec)

attributes/conditions.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# frozen_string_literal: true
22

33
#
4-
# Cookbook Name:: aws-parallelcluster
4+
# Cookbook:: aws-parallelcluster
55
# Attributes:: default
66
#
7-
# Copyright 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7+
# Copyright:: 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
88
#
99
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the
1010
# License. A copy of the License is located at

attributes/default.rb

Lines changed: 43 additions & 43 deletions
Large diffs are not rendered by default.

cookbooks/aws-parallelcluster-awsbatch/metadata.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22

33
name 'aws-parallelcluster-awsbatch'
44
maintainer 'Amazon Web Services'
5-
maintainer_email ''
65
license 'Apache-2.0'
76
description 'Manages AWS Batch in AWS ParallelCluster'
8-
long_description 'Manages AWS Batch in AWS ParallelCluster'
97
issues_url 'https://github.com/aws/aws-parallelcluster/issues'
108
source_url 'https://github.com/aws/aws-parallelcluster-cookbook'
119
chef_version '17.2.29'
1210
version '3.1.0'
1311

14-
supports 'amazon', '>= 2'
15-
supports 'centos', '>= 7'
12+
supports 'amazon', '>= 2.0'
13+
supports 'centos', '>= 7.0'
1614
supports 'ubuntu', '>= 18.04'
1715

1816
depends 'apt', '~> 7.4.0'

cookbooks/aws-parallelcluster-awsbatch/recipes/config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# frozen_string_literal: true
22

33
#
4-
# Cookbook Name:: aws-parallelcluster
4+
# Cookbook:: aws-parallelcluster
55
# Recipe:: aws_batch
66
#
7-
# Copyright 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7+
# Copyright:: 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
88
#
99
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the
1010
# License. A copy of the License is located at

cookbooks/aws-parallelcluster-awsbatch/recipes/install.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# frozen_string_literal: true
22

33
#
4-
# Cookbook Name:: aws-parallelcluster
4+
# Cookbook:: aws-parallelcluster
55
# Recipe:: aws_batch
66
#
7-
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7+
# Copyright:: 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
88
#
99
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the
1010
# License. A copy of the License is located at

cookbooks/aws-parallelcluster-config/metadata.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22

33
name 'aws-parallelcluster-config'
44
maintainer 'Amazon Web Services'
5-
maintainer_email ''
65
license 'Apache-2.0'
76
description 'Configures AWS ParallelCluster'
8-
long_description 'Configures AWS ParallelCluster'
97
issues_url 'https://github.com/aws/aws-parallelcluster-cookbook/issues'
108
source_url 'https://github.com/aws/aws-parallelcluster-cookbook'
119
chef_version '17.2.29'
1210
version '3.1.0'
1311

14-
supports 'amazon', '>= 2'
15-
supports 'centos', '>= 7'
12+
supports 'amazon', '>= 2.0'
13+
supports 'centos', '>= 7.0'
1614
supports 'ubuntu', '>= 18.04'
1715

1816
depends 'apt', '~> 7.4.0'

cookbooks/aws-parallelcluster-config/recipes/base.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# frozen_string_literal: true
22

33
#
4-
# Cookbook Name:: aws-parallelcluster
4+
# Cookbook:: aws-parallelcluster
55
# Recipe:: base
66
#
7-
# Copyright 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7+
# Copyright:: 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
88
#
99
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the
1010
# License. A copy of the License is located at
@@ -19,7 +19,7 @@
1919
include_recipe 'aws-parallelcluster-config::openssh'
2020

2121
# Restore old behavior with sticky bits in Ubuntu 20 to allow root writing to files created by other users
22-
if node['platform'] == 'ubuntu' && node['platform_version'].to_i == 20
22+
if platform?('ubuntu') && node['platform_version'].to_i == 20
2323
sysctl 'fs.protected_regular' do
2424
value 0
2525
end
@@ -29,7 +29,7 @@
2929

3030
service "setup-ephemeral" do
3131
supports restart: false
32-
action %i[enable start]
32+
action %i(enable start)
3333
end
3434

3535
# Increase somaxconn and tcp_max_syn_backlog for large scale setting

cookbooks/aws-parallelcluster-config/recipes/chrony.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# frozen_string_literal: true
22

33
#
4-
# Cookbook Name:: aws-parallelcluster
4+
# Cookbook:: aws-parallelcluster
55
# Recipe:: chrony
66
#
7-
# Copyright 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7+
# Copyright:: 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
88
#
99
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the
1010
# License. A copy of the License is located at
@@ -19,5 +19,5 @@
1919
# chrony service supports restart but is not correctly checking if the process is stopped before starting the new one
2020
supports restart: false
2121
reload_command chrony_reload_command
22-
action %i[enable start]
22+
action %i(enable start)
2323
end

cookbooks/aws-parallelcluster-config/recipes/cloudwatch_agent.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# frozen_string_literal: true
22

33
#
4-
# Cookbook Name:: aws-parallelcluster
4+
# Cookbook:: aws-parallelcluster
55
# Recipe:: cloudwatch_agent
66
#
7-
# Copyright 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7+
# Copyright:: 2013-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
88
#
99
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the
1010
# License. A copy of the License is located at
@@ -82,7 +82,7 @@
8282
user 'root'
8383
command "/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json -s"
8484
not_if do
85-
system("/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a status | grep status | grep running") || # ~FC048
85+
system("/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a status | grep status | grep running") ||
8686
node['cluster']['cw_logging_enabled'] != 'true'
8787
end
8888
end

0 commit comments

Comments
 (0)