Class: AwsDockerUtils::Controllers::Configurator
- Inherits:
-
Object
- Object
- AwsDockerUtils::Controllers::Configurator
- Defined in:
- lib/aws_docker_utils/controllers/configurator.rb
Instance Method Summary collapse
- #activate ⇒ Object
-
#initialize(opts = {}) ⇒ Configurator
constructor
A new instance of Configurator.
Constructor Details
#initialize(opts = {}) ⇒ Configurator
Returns a new instance of Configurator.
9 10 11 12 |
# File 'lib/aws_docker_utils/controllers/configurator.rb', line 9 def initialize(opts={}) @opts = opts @config = AwsConfigStorage.new end |
Instance Method Details
#activate ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/aws_docker_utils/controllers/configurator.rb', line 14 def activate if @opts.fetch('init') publish(:access_key, std_input("Please enter AWS user ACCESS KEY:")) publish(:secret_key, std_input("Please enter AWS user SERCET KEY:")) publish(:region, std_input("Please enter AWS preferred REGION:")) else @config.clear! end end |