Class: I18nFlow::CLI::ReadConfigCommand
- Inherits:
-
CommandBase
- Object
- CommandBase
- I18nFlow::CLI::ReadConfigCommand
- Defined in:
- lib/i18n_flow/cli/read_config_command.rb
Instance Method Summary collapse
Methods inherited from CommandBase
#color_enabled?, #exit_with_message, #initialize
Constructor Details
This class inherits a constructor from I18nFlow::CLI::CommandBase
Instance Method Details
#invoke! ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/i18n_flow/cli/read_config_command.rb', line 5 def invoke! unless key (1, 'usage: i18n_flow read_config KEY') end case key when 'base_path' puts I18nFlow.config.base_path end end |
#key ⇒ Object
16 17 18 |
# File 'lib/i18n_flow/cli/read_config_command.rb', line 16 def key args[0] end |