Skip to content

Commit a0df896

Browse files
committed
refactor: move warning
1 parent 518ae0f commit a0df896

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/thor/actions/inject_into_file.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
class Thor
44
module Actions
5+
WARNINGS = {unchanged_no_flag: "File unchanged! Either the supplied flag value not found or the content has already been inserted!"}
6+
57
# Injects the given content into a file. Different from gsub_file, this
68
# method is reversible.
79
#
@@ -21,8 +23,6 @@ module Actions
2123
# gems.split(" ").map{ |gem| " config.gem :#{gem}" }.join("\n")
2224
# end
2325
#
24-
WARNINGS = {unchanged_no_flag: "File unchanged! Either the supplied flag value not found or the content has already been inserted!"}
25-
2626
def insert_into_file(destination, *args, &block)
2727
data = block_given? ? block : args.shift
2828

0 commit comments

Comments
 (0)