class RuboCop::Cop::Chef::Deprecations::Delivery
The Delivery
CLI from Chef
Delivery/Workflow is no longer bundled with Chef
Workstation as Chef
Delivery
is end of life as of Dec 31st 2021.
Users of Delivery
/ Workflow would include a ‘.delivery` directory in their cookbooks. This directory would include Delivery
local-mode configs or Delivery
cookbooks. The contents of this directory are now obsolete and should be removed.
Constants
- MSG
Public Instance Methods
An empty / simple TOML file can also be syntactically valid Ruby
, so RuboCop
may start an investigation instead of calling on_other_file.
Alias for: on_other_file
Source
# File lib/rubocop/cop/chef/deprecation/delivery.rb, line 32 def on_other_file return unless processed_source.path.end_with?('/.delivery/project.toml', '/.delivery/config.json') # Using range similar to RuboCop::Cop::Naming::Filename (file_name.rb) range = source_range(processed_source.buffer, 1, 0) add_offense(range, severity: :warning) end
Also aliased as: on_new_investigation