Sha256: c4c1119159dc8b5a70055fd6d4d7bad20d19fd18a4ec7bc91e80710279d7c29c
Contents?: true
Size: 757 Bytes
Versions: 2
Compression:
Stored size: 757 Bytes
Contents
class BrandOffboarder def offboard(brand_key, confirm: true) if confirm Solara.logger.warn("Are you sure you need to offboard #{brand_key} and delete all its configurations? (y/n)") confirmation = STDIN.gets.chomp.downcase unless confirmation == 'y' Solara.logger.info("Offboarding #{brand_key} cancelled.") return end end BrandsManager.instance.offboard(brand_key) Solara.logger.success("Offboarded #{brand_key} successfully.") is_current_brand = BrandsManager.instance.is_current_brand(brand_key) SolaraManager.new.switch(BrandsManager.instance.first_brand_key, ignore_health_check: true) if is_current_brand end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solara-0.2.0 | solara/lib/core/scripts/brand_offboarder.rb |
solara-0.1.0 | solara/lib/core/scripts/brand_offboarder.rb |