Class: Sessel::Add
- Inherits:
-
Thor
- Object
- Thor
- Sessel::Add
- Defined in:
- lib/sessel/main.rb
Instance Method Summary collapse
Instance Method Details
#configuration_set(solution_name) ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/sessel/main.rb', line 33 def configuration_set(solution_name) region = IO.announce { Ask.for_region } configuration_set_creator = Sessel::ConfigurationSetCreator.new( ConfigurationSet.new(region, "#{solution_name}ConfigurationSet") ) configuration_set_creator.create IO.append_configuration_set_to_file(configuration_set_creator.configuration_set) puts "That's it!" end |
#receipt_rule(solution_name) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/sessel/main.rb', line 16 def receipt_rule(solution_name) region = IO.announce { Ask.for_region } chosen_rule_set_name = IO.announce { Ask.for_rule_set_name(solution_name) } email_address = IO.announce { Ask.for_email_address } s3_bucket = IO.announce { Ask.for_s3_bucket(solution_name, region) } rule_creator = Sessel::ReceiptRuleCreator.new( ReceiptRule.new(region, [email_address], s3_bucket, solution_name, chosen_rule_set_name) ) rule_creator.create IO.append_receipt_rule_to_file(rule_creator.receipt_rule) puts "That's it!" end |