class Abt::Providers::Devops::Commands::Clear
Public Class Methods
description()
click to toggle source
# File lib/abt/providers/devops/commands/clear.rb, line 12 def self.description "Clear DevOps configuration" end
flags()
click to toggle source
# File lib/abt/providers/devops/commands/clear.rb, line 16 def self.flags [ ["-g", "--global", "Clear global instead of local DevOp configuration (credentials etc.)"], ["-a", "--all", "Clear all DevOp configuration"] ] end
usage()
click to toggle source
# File lib/abt/providers/devops/commands/clear.rb, line 8 def self.usage "abt clear devops" end
Public Instance Methods
perform()
click to toggle source
# File lib/abt/providers/devops/commands/clear.rb, line 24 def perform abort("Flags --global and --all cannot be used together") if flags[:global] && flags[:all] config.clear_local unless flags[:global] config.clear_global if flags[:global] || flags[:all] warn("Configuration cleared") end