Skip to content

Commit

Permalink
Make lintastic
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Jan 12, 2025
1 parent e8220f0 commit 079354c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions cookbooks/boxcutter_ros/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@
'mirror' => 'http://packages.ros.org/ros2/ubuntu',
'distributions' => {
'jazzy' => {
'packages' => ['ros-jazzy-desktop', 'ros-jazzy-ros-gz']
}
}
'packages' => ['ros-jazzy-desktop', 'ros-jazzy-ros-gz'],
},
},
}
elsif node.ubuntu? && node['platform_version'].start_with?('22')
default['boxcutter_ros'] = {
'mirror' => 'http://packages.ros.org/ros2/ubuntu',
'distributions' => {
'humble' => {
'packages' => ['ros-humble-desktop', 'ros-humble-ros-gz']
}
}
'packages' => ['ros-humble-desktop', 'ros-humble-ros-gz'],
},
},
}
elsif node.ubuntu? && node['platform_version'].start_with?('20')
default['boxcutter_ros'] = {
'mirror' => 'http://packages.ros.org/ros2/ubuntu',
'distributions' => {
'foxy' => {
'packages' => ['ros-foxy-desktop']
}
}
'packages' => ['ros-foxy-desktop'],
},
},
}
else
default['boxcutter_ros'] = {
'mirror' => 'http://packages.ros.org/ros2/ubuntu',
'distributions' => {}
'distributions' => {},
}
end
2 changes: 1 addition & 1 deletion cookbooks/boxcutter_ros/recipes/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@
# Omit signed-by and use apt-key to import the key
node.default['fb_apt']['repos'] << "deb #{node['boxcutter_ros']['mirror']} #{node['lsb']['codename']} main"
when 'centos'
raise 'Unsupported platform'
fail 'Unsupported platform'
end
2 changes: 1 addition & 1 deletion cookbooks/boxcutter_ros/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

node['boxcutter_ros']['distributions'].each do |distro_name, distro_config|
node['boxcutter_ros']['distributions'].each do |_distro_name, distro_config|
package distro_config['packages']
end
2 changes: 1 addition & 1 deletion cookbooks/boxcutter_ros/recipes/gazebo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
node.default['fb_apt']['repos'] << \
"deb http://packages.osrfoundation.org/gazebo/ubuntu-stable #{node['lsb']['codename']} main"
when 'centos'
raise 'Unsupported platform'
fail 'Unsupported platform'
end

package 'gz-harmonic' do
Expand Down

0 comments on commit 079354c

Please sign in to comment.