Sha256: 5bbc06662c24989fd5c65fac28684389b3847a18e026da4ffb74b044dc542da1

Contents?: true

Size: 494 Bytes

Versions: 33

Compression:

Stored size: 494 Bytes

Contents

require 'super_callbacks'
module SiteHook
  module Templates
    class Logs
      include SuperCallbacks
      before :created_log_log_header do 
        @@time = Time.now.utc.localtime.strftime("%Y%m%dT%H%M%SZ%Z")
      end
      ###
      # Puts the log header to the start of the log files
      # @param [String,File,Pathname] file file to  
      # @return NilClass
      ###
      def created_log_log_header
        header = "### Log file created at #{@@time}"
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
site_hook-1.0.10 lib/site_hook/templates/log_header.rb
site_hook-1.0.9 lib/site_hook/templates/log_header.rb
site_hook-1.0.8 lib/site_hook/templates/log_header.rb
site_hook-1.0.7 lib/site_hook/templates/log_header.rb
site_hook-1.0.6 lib/site_hook/templates/log_header.rb
site_hook-1.0.5 lib/site_hook/templates/log_header.rb
site_hook-1.0.4 lib/site_hook/templates/log_header.rb
site_hook-1.0.3 lib/site_hook/templates/log_header.rb
site_hook-1.0.2 lib/site_hook/templates/log_header.rb
site_hook-1.0.1 lib/site_hook/templates/log_header.rb
site_hook-1.0.0 lib/site_hook/templates/log_header.rb
site_hook-0.9.20 lib/site_hook/templates/log_header.rb
site_hook-0.9.19 lib/site_hook/templates/log_header.rb