Class: I18nFlow::CLI::ReadConfigCommand

Inherits:
CommandBase show all
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
    exit_with_message(1, 'usage: i18n_flow read_config KEY')
  end

  case key
  when 'base_path'
    puts I18nFlow.config.base_path
  end
end

#keyObject



16
17
18
# File 'lib/i18n_flow/cli/read_config_command.rb', line 16

def key
  args[0]
end