Top Level Namespace

Defined Under Namespace

Classes: Filewatcher

Instance Method Summary collapse

Instance Method Details

#dump_to_file(content) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/filewatcher/cli/spec_helper/dump_to_file.rb', line 5

def dump_to_file(content)
  Filewatcher::CLI::SpecHelper.debug "#{__method__} #{content.inspect}"

  File.write(
    File.join(Filewatcher::CLI::SpecHelper::ShellWatchRun::DUMP_FILE),
    "#{content}\n",
    mode: 'a+'
  )
end