class Sem::CLI::Teams::Secrets
Public Instance Methods
add(team_name, secret_name)
click to toggle source
# File lib/sem/cli/teams.rb, line 286 def add(team_name, secret_name) team = Sem::API::Team.find!(team_name) secret = Sem::API::Secret.find!(secret_name) team.add_secret(secret) puts "Secrets #{secret_name} added to the team." end
list(team_name)
click to toggle source
# File lib/sem/cli/teams.rb, line 268 def list(team_name) team = Sem::API::Team.find!(team_name) configs = team.secrets if !configs.empty? Sem::Views::Secrets.list(configs) else Sem::Views::Teams.add_first_secrets(team) end end
remove(team_name, secret_name)
click to toggle source
# File lib/sem/cli/teams.rb, line 302 def remove(team_name, secret_name) team = Sem::API::Team.find!(team_name) secret = Sem::API::Secret.find!(secret_name) team.remove_secret(secret) puts "Secrets #{secret_name} removed from the team." end