class Embulk::Output::Bigquery::LocalFile

To support configuration like below as org.embulk.spi.unit.LocalFile

json_keyfile:

content: |

Public Class Methods

load(v) click to toggle source

@return JSON string

# File lib/embulk/output/bigquery.rb, line 24
def self.load(v)
  if v.is_a?(String) # path
    File.read(File.expand_path(v))
  elsif v.is_a?(Hash)
    v['content']
  end
end