File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -344,13 +344,6 @@ def disable_required_check?(command) #:nodoc:
344
344
command && disable_required_check . include? ( command . name . to_sym )
345
345
end
346
346
347
- def deprecation_warning ( message ) #:nodoc:
348
- unless ENV [ 'THOR_SILENCE_DEPRECATION' ]
349
- warn "Deprecation warning: #{ message } \n " +
350
- 'You can silence deprecations warning by setting the environment variable THOR_SILENCE_DEPRECATION.'
351
- end
352
- end
353
-
354
347
protected
355
348
356
349
def stop_on_unknown_option #:nodoc:
Original file line number Diff line number Diff line change @@ -22,6 +22,15 @@ class Thor
22
22
23
23
TEMPLATE_EXTNAME = ".tt"
24
24
25
+ class << self
26
+ def deprecation_warning ( message ) #:nodoc:
27
+ unless ENV [ 'THOR_SILENCE_DEPRECATION' ]
28
+ warn "Deprecation warning: #{ message } \n " +
29
+ 'You can silence deprecations warning by setting the environment variable THOR_SILENCE_DEPRECATION.'
30
+ end
31
+ end
32
+ end
33
+
25
34
module Base
26
35
attr_accessor :options , :parent_options , :args
27
36
You can’t perform that action at this time.
0 commit comments