Class: Awspec::Generate
- Inherits:
-
Thor
- Object
- Thor
- Awspec::Generate
- Defined in:
- lib/awspec/command/generate.rb
Instance Method Summary collapse
Instance Method Details
#route53_hosted_zone(hosted_zone) ⇒ Object
24 25 26 27 |
# File 'lib/awspec/command/generate.rb', line 24 def route53_hosted_zone(hosted_zone) Awsecrets.load(profile: [:profile], region: [:region], secrets_path: [:secrets_path]) puts Awspec::Generator::Spec::Route53HostedZone.new.generate_by_domain_name(hosted_zone) end |
#s3_bucket(bucket_name = nil) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/awspec/command/generate.rb', line 30 def s3_bucket(bucket_name = nil) Awsecrets.load(profile: [:profile], region: [:region], secrets_path: [: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 |