Module: EasyCreds::Actions::Init
- Defined in:
- lib/easy_creds/actions/init.rb
Class Method Summary collapse
Class Method Details
.call(ctx) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/easy_creds/actions/init.rb', line 8 def self.call(ctx) Theme.section("Init — bootstrap credentials/#{ctx.env}.yml.enc") return unless overwrite?(ctx) template = load_template(ctx) return unless template remote_fields = fetch_remote(ctx) state = build_state(template, remote_fields, ctx.config.ignore_keys) run_navigator(state, ctx) end |