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.2.5 lib/trackman/assets/components/conventions.rb
trackman-0.2.4 lib/trackman/assets/components/conventions.rb
trackman-0.2.3 lib/trackman/assets/components/conventions.rb
trackman-0.2.1 lib/trackman/assets/components/conventions.rb
trackman-0.2.0 lib/trackman/assets/components/conventions.rb
trackman-0.1.9 lib/trackman/assets/components/conventions.rb
trackman-0.1.8 lib/trackman/assets/components/conventions.rb
trackman-0.1.7 lib/trackman/assets/components/conventions.rb
trackman-0.1.6 lib/trackman/assets/components/conventions.rb
trackman-0.1.5 lib/trackman/assets/components/conventions.rb
trackman-0.1.4 lib/trackman/assets/components/conventions.rb
trackman-0.1.3 lib/trackman/assets/components/conventions.rb
trackman-0.1.2 lib/trackman/assets/components/conventions.rb
trackman-0.0.9 lib/trackman/assets/components/conventions.rb
trackman-0.0.8 lib/trackman/assets/components/conventions.rb
trackman-0.0.6 lib/trackman/assets/components/conventions.rb
trackman-0.0.5 lib/trackman/assets/components/conventions.rb
trackman-0.1.1 lib/trackman/assets/components/conventions.rb
trackman-0.1.0 lib/trackman/assets/components/conventions.rb