Sha256: e85dbeb95dc2de49afb091d4e287d8d61b0cd6f61a9b721da609d63d1740fe94

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

module LocaleApp
  module CLI
    class Update
      def initialize(output = $stdout)
        @output = output
      end

      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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
localeapp-0.0.7 lib/locale_app/cli/update.rb