Class: Barruun::Managers::Bigquery::Dataset

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/barruun/managers/bigquery/dataset.rb

Instance Method Summary collapse

Methods included from Utils

#call, included, #initialize, #options_string

Instance Method Details

#createObject



10
11
12
# File 'lib/barruun/managers/bigquery/dataset.rb', line 10

def create
  `bq #{location_string} mk --dataset #{options_string(@config.options)} #{@config.name}`
end

#exist?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/barruun/managers/bigquery/dataset.rb', line 14

def exist?
  `bq ls`.include?(@config.name)
end