We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 518ae0f commit a0df896Copy full SHA for a0df896
lib/thor/actions/inject_into_file.rb
@@ -2,6 +2,8 @@
2
3
class Thor
4
module Actions
5
+ WARNINGS = {unchanged_no_flag: "File unchanged! Either the supplied flag value not found or the content has already been inserted!"}
6
+
7
# Injects the given content into a file. Different from gsub_file, this
8
# method is reversible.
9
#
@@ -21,8 +23,6 @@ module Actions
21
23
# gems.split(" ").map{ |gem| " config.gem :#{gem}" }.join("\n")
22
24
# end
25
- WARNINGS = {unchanged_no_flag: "File unchanged! Either the supplied flag value not found or the content has already been inserted!"}
-
26
def insert_into_file(destination, *args, &block)
27
data = block_given? ? block : args.shift
28
0 commit comments