Sha256: 56f0a6be0f5b54db094f4a3c3e8971ae909f23c8deef9a0c6f3e9c1216e1846d

Contents?: true

Size: 327 Bytes

Versions: 8

Compression:

Stored size: 327 Bytes

Contents

# frozen_string_literal: true

module PUNK
  class SecretWorker < Worker
    args :name

    def validate
      validates_not_null :name
      validates_not_empty :name
    end

    def process
      secret = SecretService.run.result
      sleep 5 unless PUNK.env.test?
      logger.info "#{name}: #{secret}"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
punk-0.4.1 lib/punk/workers/secret.rb
punk-0.3.6 lib/punk/workers/secret.rb
punk-0.3.5 lib/punk/workers/secret.rb
punk-0.3.4 lib/punk/workers/secret.rb
punk-0.3.3 lib/punk/workers/secret.rb
punk-0.3.2 lib/punk/workers/secret.rb
punk-0.3.1 lib/punk/workers/secret.rb
punk-0.2.0 lib/punk/workers/secret.rb