Permalink
Browse files

dir structure backport

  • Loading branch information...
1 parent 2f60384 commit 1302002cd679631116566369612ff96d877157b0 @paulasmuth committed May 15, 2012
View
4 lib/fnordmetric/web/app.rb
@@ -40,7 +40,7 @@ class FnordMetric::App < Sinatra::Base
enable :session
set :haml, :format => :html5
- set :views, ::File.expand_path('../../../../haml', __FILE__)
+ set :views, ::File.expand_path('../../../../web/haml', __FILE__)
def initialize(opts)
@namespaces = FnordMetric.namespaces.clone
@@ -79,7 +79,7 @@ def current_namespace
end
get '/' do
- ::File.open(::File.expand_path("../../../../web/fnordmetric.html", __FILE__)).read
+ redirect "#{path_prefix}/#{@namespaces.keys.first}"
end
get '/:namespace' do
View
0 doc/spec/api_spec.rb → spec/api_spec.rb
File renamed without changes.
View
0 doc/spec/app_spec.rb → spec/app_spec.rb
File renamed without changes.
View
0 doc/spec/context_spec.rb → spec/context_spec.rb
File renamed without changes.
View
0 doc/spec/dashboard_spec.rb → spec/dashboard_spec.rb
File renamed without changes.
View
0 doc/spec/event_spec.rb → spec/event_spec.rb
File renamed without changes.
View
0 doc/spec/ext_spec.rb → spec/ext_spec.rb
File renamed without changes.
View
0 doc/spec/fnordmetric_spec.rb → spec/fnordmetric_spec.rb
File renamed without changes.
View
0 doc/spec/gauge_like_shared.rb → spec/gauge_like_shared.rb
File renamed without changes.
View
0 doc/spec/gauge_modifiers_spec.rb → spec/gauge_modifiers_spec.rb
File renamed without changes.
View
0 doc/spec/gauge_spec.rb → spec/gauge_spec.rb
File renamed without changes.
View
0 doc/spec/inbound_datagram_spec.rb → spec/inbound_datagram_spec.rb
File renamed without changes.
View
0 doc/spec/inbound_stream_spec.rb → spec/inbound_stream_spec.rb
File renamed without changes.
View
0 doc/spec/mutli_gauge_spec.rb → spec/mutli_gauge_spec.rb
File renamed without changes.
View
0 doc/spec/namespace_spec.rb → spec/namespace_spec.rb
File renamed without changes.
View
0 doc/spec/numeric_gauge_spec.rb → spec/numeric_gauge_spec.rb
File renamed without changes.
View
0 doc/spec/session_spec.rb → spec/session_spec.rb
File renamed without changes.
View
0 doc/spec/spec_helper.rb → spec/spec_helper.rb
File renamed without changes.
View
0 doc/spec/toplist_gauge_spec.rb → spec/toplist_gauge_spec.rb
File renamed without changes.
View
0 doc/spec/widget_spec.rb → spec/widget_spec.rb
File renamed without changes.
View
0 doc/spec/worker_spec.rb → spec/worker_spec.rb
File renamed without changes.
View
0 haml/app.haml → web/haml/app.haml
File renamed without changes.
View
0 haml/numeric_gauge.haml → web/haml/numeric_gauge.haml
File renamed without changes.
View
0 haml/toplist_gauge.haml → web/haml/toplist_gauge.haml
File renamed without changes.
View
0 haml/widget.haml → web/haml/widget.haml
File renamed without changes.

0 comments on commit 1302002

Please sign in to comment.