lib/chef-dk/commands_map.rb in chef-dk-1.2.22 vs lib/chef-dk/commands_map.rb in chef-dk-1.3.40
- old
+ new
@@ -72,11 +72,11 @@
@command_specs = {}
end
def builtin(name, constant_name, require_path: NULL_ARG, desc: "")
if null?(require_path)
- snake_case_path = name.gsub("-", "_")
+ snake_case_path = name.tr("-", "_")
require_path = "chef-dk/command/#{snake_case_path}"
end
command_specs[name] = CommandSpec.new(name, constant_name, require_path, desc)
end
@@ -109,7 +109,5 @@
def self.commands
yield commands_map
end
end
-
-