Class: Barruun::Managers::Storage::Bucket
- Inherits:
-
Object
- Object
- Barruun::Managers::Storage::Bucket
show all
- Includes:
- Utils
- Defined in:
- lib/barruun/managers/storage/bucket.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/storage/bucket.rb', line 10
def create
`gcloud alpha storage buckets create #{options_string(@config.options)} #{@config.name}`
end
|
#exist? ⇒ Boolean
14
15
16
|
# File 'lib/barruun/managers/storage/bucket.rb', line 14
def exist?
`gcloud alpha storage buckets list --filter='name: #{@config.name}'`.include?(@config.name)
end
|