class Awspec::Generate

Public Instance Methods

route53_hosted_zone(hosted_zone) click to toggle source
# File lib/awspec/command/generate.rb, line 26
def route53_hosted_zone(hosted_zone)
  Awsecrets.load(profile: options[:profile], region: options[:region], secrets_path: options[:secrets_path])
  puts Awspec::Generator::Spec::Route53HostedZone.new.generate_by_domain_name(hosted_zone)
end
s3_bucket(bucket_name = nil) click to toggle source
# File lib/awspec/command/generate.rb, line 32
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