Sha256: 37ba8b0c92aaf90dd209b2832568a33505807c03847c6d415830d03da3332d05

Contents?: true

Size: 558 Bytes

Versions: 15

Compression:

Stored size: 558 Bytes

Contents

module Trackman
  module Assets
    module Components
      module Conventions
        Asset = Trackman::Assets::Asset
        
        def maintenance_path
          Pathname.new 'public/503.html'
        end
        def error_path
          Pathname.new 'public/503-error.html'
        end  
        def maintenance_page
          Asset.create(:path => maintenance_path, :virtual_path => maintenance_path)
        end
        def error_page
          Asset.create(:path => error_path, :virtual_path => error_path)
        end 
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
trackman-0.5.4 lib/trackman/assets/components/conventions.rb
trackman-0.5.3 lib/trackman/assets/components/conventions.rb
trackman-0.5.2 lib/trackman/assets/components/conventions.rb
trackman-0.5.1 lib/trackman/assets/components/conventions.rb
trackman-0.5.0 lib/trackman/assets/components/conventions.rb
trackman-0.4.8 lib/trackman/assets/components/conventions.rb
trackman-0.4.7 lib/trackman/assets/components/conventions.rb
trackman-0.4.6 lib/trackman/assets/components/conventions.rb
trackman-0.4.5 lib/trackman/assets/components/conventions.rb
trackman-0.4.4 lib/trackman/assets/components/conventions.rb
trackman-0.4.3 lib/trackman/assets/components/conventions.rb
trackman-0.4.2 lib/trackman/assets/components/conventions.rb
trackman-0.4.1 lib/trackman/assets/components/conventions.rb
trackman-0.4.0 lib/trackman/assets/components/conventions.rb
trackman-0.3.5 lib/trackman/assets/components/conventions.rb