Class: Barruun::Managers::Bigquery::Dataset
- Inherits:
-
Object
- Object
- Barruun::Managers::Bigquery::Dataset
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
#create ⇒ Object
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
14
15
16
|
# File 'lib/barruun/managers/bigquery/dataset.rb', line 14
def exist?
`bq ls`.include?(@config.name)
end
|