Sha256: 5df7cb0fc7d3dc3eb6bc344f92ab6184796baa208dc2fb51ccca39787a48ce3a
Contents?: true
Size: 701 Bytes
Versions: 5
Compression:
Stored size: 701 Bytes
Contents
module Rundock module Operation class Base OperationNotImplementedError = Class.new(NotImplementedError) attr_reader :instruction attr_reader :attributes def initialize(instruction, attributes) @instruction = instruction @attributes = attributes @attributes = {} unless attributes end def run(backend, attributes = {}) raise OperationNotImplementedError end def logging(message, severity) h_host = @attributes[:nodename].just(' ', 15) h_ope = "start #{self.class.to_s.split('::').last.downcase}:" Logger.send(severity.to_sym, "#{h_host} #{h_ope} #{message}") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems