Sha256: 0b42cfbf175b8f07b883705212bea67644b7598427a440633d34ca02657479d7

Contents?: true

Size: 456 Bytes

Versions: 16

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

16 entries across 16 versions & 1 rubygems

Version Path
localeapp-0.5.2 lib/localeapp/cli/update.rb
localeapp-0.5.1 lib/localeapp/cli/update.rb
localeapp-0.5.0 lib/localeapp/cli/update.rb
localeapp-0.4.3 lib/localeapp/cli/update.rb
localeapp-0.4.2 lib/localeapp/cli/update.rb
localeapp-0.4.1 lib/localeapp/cli/update.rb
localeapp-0.4.0 lib/localeapp/cli/update.rb
localeapp-0.3.2 lib/localeapp/cli/update.rb
localeapp-0.3.1 lib/localeapp/cli/update.rb
localeapp-0.3.0 lib/localeapp/cli/update.rb
localeapp-0.2.0 lib/localeapp/cli/update.rb
localeapp-0.1.2 lib/localeapp/cli/update.rb
localeapp-0.1.1 lib/localeapp/cli/update.rb
localeapp-0.0.11 lib/localeapp/cli/update.rb
localeapp-0.0.10 lib/localeapp/cli/update.rb
localeapp-0.0.8 lib/localeapp/cli/update.rb