Module: GreenHat::Ps

Defined in:
lib/greenhat/accessors/process.rb

Overview

Sidekiq Log Helpers

Class Method Summary collapse

Class Method Details

.ps(args) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/greenhat/accessors/process.rb', line 4

def self.ps(args)
  things = Thing.where(name: 'ps')

  # Host / Archive
  things.select! { |x| x.archive? args.archive } if args.archive

  things
end

.thingsObject



13
14
15
# File 'lib/greenhat/accessors/process.rb', line 13

def self.things
  Thing.where(name: 'ps')
end