Class: GemDandy::RubygemsProfile
- Includes:
- ConfigFile, Output
- Defined in:
- lib/gem_dandy/rubygems_profile.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods included from Output
Methods included from ConfigFile
#api_keys, #config_file_name, #find_api_key, #gemdandy_rc_file
Methods inherited from Command
Constructor Details
This class inherits a constructor from GemDandy::Command
Instance Method Details
#perform_action ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/gem_dandy/rubygems_profile.rb', line 6 def perform_action perform_checks if [:switch_given] switch_profile_to( [:switch] ) display_active_profile elsif [:list_given] list_configured_profiles elsif [:show_given] show_configured_profile( [:show] ) else display_active_profile end end |