Class: GitContext::Commands::DeleteProfile

Inherits:
Base
  • Object
show all
Defined in:
lib/git_context/commands/delete_profile.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from GitContext::Commands::Base

Instance Method Details

#callObject



6
7
8
9
10
# File 'lib/git_context/commands/delete_profile.rb', line 6

def call
  stored_profiles = @configuration.list_profile_names
  to_be_deleted = @interaction.prompt_delete_profile(stored_profiles)
  @configuration.delete_profile(to_be_deleted)
end