Class: Holistics::Dbt

Inherits:
Thor
  • Object
show all
Defined in:
lib/dbt.rb

Instance Method Summary collapse

Instance Method Details

#uploadObject



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/dbt.rb', line 9

def upload
  data_source_name = options[:data_source_name]
  manifest_file = get_manifest_file_from(options)

  params = {
    data_source_name: data_source_name
  }

  http_request.post_file('api/v2/data_sources/upload_dbt_manifest.json', params, manifest_file, 'application/json',
                         'Error uploading manifest.json file')

  puts 'Upload completed!'
end