Sha256: 657c6dc925a270daca835850819e436d78903472d72962192116e121139c0e7d

Contents?: true

Size: 436 Bytes

Versions: 22

Compression:

Stored size: 436 Bytes

Contents

module ORS::Commands
  class Logs < Base

    def execute
      all_logs = app_servers.map do |server|
        [
         server,
         execute_command(server,
                         %(cd #{deploy_directory}),
                         %(tail -n #{log_lines} log/#{environment}.log),
                         :capture => true)
        ]
      end

      puts ORS::LogUnifier.new(all_logs).unify unless pretending
    end

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ors-0.2.4 lib/ors/commands/logs.rb
ors-0.2.3 lib/ors/commands/logs.rb
ors-0.2.2 lib/ors/commands/logs.rb
ors-0.2.1 lib/ors/commands/logs.rb
ors-0.2.0 lib/ors/commands/logs.rb
ors-0.1.8 lib/ors/commands/logs.rb
ors-0.1.7 lib/ors/commands/logs.rb
ors-0.1.5 lib/ors/commands/logs.rb
ors-0.1.4 lib/ors/commands/logs.rb
ors-0.1.3 lib/ors/commands/logs.rb
ors-0.1.2 lib/ors/commands/logs.rb
ors-0.1.1 lib/ors/commands/logs.rb
ors-0.1.0 lib/ors/commands/logs.rb
ors-0.0.9 lib/ors/commands/logs.rb
ors-0.0.8 lib/ors/commands/logs.rb
ors-0.0.7 lib/ors/commands/logs.rb
ors-0.0.6 lib/ors/commands/logs.rb
ors-0.0.5 lib/ors/commands/logs.rb
ors-0.0.4 lib/ors/commands/logs.rb
ors-0.0.3 lib/ors/commands/logs.rb