Skip to content

Commit

Permalink
snake_case all generated method names.
Browse files Browse the repository at this point in the history
  • Loading branch information
huba committed Dec 12, 2018
1 parent bfc6953 commit d6026a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/generate_dsl.rake
Expand Up @@ -102,9 +102,10 @@ module Async

group_commands.each do |command, command_spec|
puts "\t#{command} - #{command_spec["summary"][0..50]}"
command_method = command.downcase.split(' ').join('_')

file.write <<-METHOD
def #{command.downcase} *arguments
def #{command_method} *arguments
return call('#{command}', arguments)
end
Expand Down

0 comments on commit d6026a7

Please sign in to comment.