Sha256: 9ad7561b362dc0b0a6d86ee66c600cb6b038b468c6d96d05556086480e9d6cc2

Contents?: true

Size: 494 Bytes

Versions: 39

Compression:

Stored size: 494 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)
        end
        def error_page
          Asset.create(:path => error_path)
        end 
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
trackman-0.3.4 lib/trackman/assets/components/conventions.rb
trackman-0.3.2 lib/trackman/assets/components/conventions.rb
trackman-0.3.1 lib/trackman/assets/components/conventions.rb
trackman-0.3.0 lib/trackman/assets/components/conventions.rb
trackman-0.2.90 lib/trackman/assets/components/conventions.rb
trackman-0.2.89 lib/trackman/assets/components/conventions.rb
trackman-0.2.88 lib/trackman/assets/components/conventions.rb
trackman-0.2.87 lib/trackman/assets/components/conventions.rb
trackman-0.2.86 lib/trackman/assets/components/conventions.rb
trackman-0.2.85 lib/trackman/assets/components/conventions.rb
trackman-0.2.84 lib/trackman/assets/components/conventions.rb
trackman-0.2.83 lib/trackman/assets/components/conventions.rb
trackman-0.2.82 lib/trackman/assets/components/conventions.rb
trackman-0.2.81 lib/trackman/assets/components/conventions.rb
trackman-0.2.80 lib/trackman/assets/components/conventions.rb
trackman-0.2.65 lib/trackman/assets/components/conventions.rb
trackman-0.2.64 lib/trackman/assets/components/conventions.rb
trackman-0.2.63 lib/trackman/assets/components/conventions.rb
trackman-0.2.62 lib/trackman/assets/components/conventions.rb
trackman-0.2.61 lib/trackman/assets/components/conventions.rb