Skip to content

Commit

Permalink
Merge pull request #2412 from newrelic/update_thor_scaffold_command
Browse files Browse the repository at this point in the history
Update thor scaffold command
  • Loading branch information
tannalynn authored Jan 23, 2024
2 parents 2968b6c + 6c1e710 commit 11d212e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion lib/tasks/instrumentation_generator/instrumentation.thor
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Instrumentation < Thor
insert_into_file(
DEFAULT_SOURCE_LOCATION,
config_block(name.downcase),
after: ":description => 'Controls auto-instrumentation of bunny at start-up. May be one of [auto|prepend|chain|disabled].'
after: ":description => 'Controls auto-instrumentation of bunny at start-up. May be one of: `auto`, `prepend`, `chain`, `disabled`.'
},\n"
)
end
Expand Down
1 change: 0 additions & 1 deletion lib/tasks/instrumentation_generator/templates/chain.tt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module NewRelic::Agent::Instrumentation
include NewRelic::Agent::Instrumentation::<%= @class_name %>

alias_method(:<%= @method.downcase %>_without_new_relic, :<%= @method.downcase %>)
alias_method(:<%= @method.downcase %>, :<%= @method.downcase %>_with_new_relic)

def <%= @method.downcase %><%= "(#{@args})" unless @args.empty? %>
<%= @method.downcase %>_with_new_relic<%= "(#{@args})" unless @args.empty? %> do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
alias_method(:<%= @method.downcase %>_without_new_relic, :<%= @method.downcase %>)
alias_method(:<%= @method.downcase %>, :<%= @method.downcase %>_with_new_relic)

def <%= @method.downcase %><%= "(#{@args})" unless @args.empty? %>
<%= @method.downcase %>_with_new_relic<%= "(#{@args})" unless @args.empty? %> do
Expand Down

0 comments on commit 11d212e

Please sign in to comment.