Method: Awspec::Generate#s3_bucket

Defined in:
lib/awspec/command/generate.rb

#s3_bucket(bucket_name = nil) ⇒ Object



29
30
31
32
33
34
35
36
# File 'lib/awspec/command/generate.rb', line 29

def s3_bucket(bucket_name = nil)
  Awsecrets.load(profile: options[:profile], region: options[:region], secrets_path: options[:secrets_path])
  if bucket_name
    puts Awspec::Generator::Spec::S3Bucket.new.generate(bucket_name)
  else
    puts Awspec::Generator::Spec::S3Bucket.new.generate_all
  end
end