Class: Localeapp::CLI::Update
- Defined in:
- lib/localeapp/cli/update.rb
Instance Method Summary collapse
Methods inherited from Command
#initialize, #initialize_config, #load_config_file, #set_command_line_arguments
Constructor Details
This class inherits a constructor from Localeapp::CLI::Command
Instance Method Details
#execute ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/localeapp/cli/update.rb', line 4 def execute poller = Localeapp::Poller.new @output.puts("Localeapp update: checking for translations since #{poller.updated_at}") if poller.poll! @output.puts "Found and updated new translations" else @output.puts "No new translations" end end |