Method: Thor::Actions::InjectIntoFile#say_status

Defined in:
lib/thor/actions/inject_into_file.rb

#say_status(behavior) ⇒ Object (protected)



81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'lib/thor/actions/inject_into_file.rb', line 81

def say_status(behavior)
  status = if behavior == :invoke
    if flag == /\A/
      :prepend
    elsif flag == /\z/
      :append
    else
      :insert
    end
  else
    :subtract
  end

  super(status, config[:verbose])
end