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.30 lib/site_hook/templates/log_header.rb
site_hook-1.0.29 lib/site_hook/templates/log_header.rb
site_hook-1.0.28 lib/site_hook/templates/log_header.rb
site_hook-1.0.27 lib/site_hook/templates/log_header.rb
site_hook-1.0.26 lib/site_hook/templates/log_header.rb
site_hook-1.0.25 lib/site_hook/templates/log_header.rb
site_hook-1.0.24 lib/site_hook/templates/log_header.rb
site_hook-1.0.23 lib/site_hook/templates/log_header.rb
site_hook-1.0.22 lib/site_hook/templates/log_header.rb
site_hook-1.0.21 lib/site_hook/templates/log_header.rb
site_hook-1.0.20 lib/site_hook/templates/log_header.rb
site_hook-1.0.19 lib/site_hook/templates/log_header.rb
site_hook-1.0.18 lib/site_hook/templates/log_header.rb
site_hook-1.0.17 lib/site_hook/templates/log_header.rb
site_hook-1.0.16 lib/site_hook/templates/log_header.rb
site_hook-1.0.15 lib/site_hook/templates/log_header.rb
site_hook-1.0.14 lib/site_hook/templates/log_header.rb
site_hook-1.0.13 lib/site_hook/templates/log_header.rb
site_hook-1.0.12 lib/site_hook/templates/log_header.rb
site_hook-1.0.11 lib/site_hook/templates/log_header.rb