Class: Chamber::Commands::Secure
- Includes:
- Securable
- Defined in:
- lib/chamber/commands/secure.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options = {}) ⇒ Secure
constructor
A new instance of Secure.
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ Secure
Returns a new instance of Secure.
8 9 10 |
# File 'lib/chamber/commands/secure.rb', line 8 def initialize( = {}) super(.merge(namespaces: ['*'])) end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/chamber/commands/secure.rb', line 12 def call disable_warnings do insecure_environment_variables.each do |key, value| if dry_run shell.say_status 'encrypt', key, :blue else shell.say_status 'encrypt', key, :green end end end chamber.secure unless dry_run end |