Class: Twat::Subcommands::UpdateConfig

Inherits:
Base
  • Object
show all
Defined in:
lib/twat/subcommands/update_config.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#args, #auth!, #beep, #config, #deentitize, #enable_readline!, #format, #initialize, #needs_arguments, #needs_at_least, #opts, #pad, #reader, #run!, #usage, #usage_and_exit!

Methods included from Exceptions

#with_handled_exceptions

Constructor Details

This class inherits a constructor from Twat::Subcommands::Base

Class Method Details

.usageObject



10
11
12
# File 'lib/twat/subcommands/update_config.rb', line 10

def self.usage
  "Usage: twat update_config"
end

Instance Method Details

#runObject



4
5
6
7
8
# File 'lib/twat/subcommands/update_config.rb', line 4

def run

  config.update_config

end