Class: Airb::Tools::FS::ReadFile

Inherits:
VSM::ToolCapsule
  • Object
show all
Defined in:
lib/airb/tools/fs/read_file.rb

Instance Method Summary collapse

Instance Method Details

#run(args) ⇒ Object



14
15
16
17
# File 'lib/airb/tools/fs/read_file.rb', line 14

def run(args)
  path = governance.send(:safe_path, args.fetch("path"))
  File.read(path, mode: "r:UTF-8")
end