Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Yield config so additional, custom recipes can be added

Add trivial sinatra example
  • Loading branch information...
commit 5284559d54432b51c357bac5a2bfe391d2aa9c7e 1 parent 7148cbe
@bruce bruce authored
Showing with 12 additions and 0 deletions.
  1. +11 −0 examples/simple.rb
  2. +1 −0  lib/fiveruns/dash/sinatra.rb
View
11 examples/simple.rb
@@ -0,0 +1,11 @@
+require 'rubygems'
+require 'sinatra'
+require 'fiveruns/dash/sinatra'
+
+configure :production do
+ Fiveruns::Dash::Sinatra.start('APP-TOKEN-HERE')
+end
+
+get '/' do
+ "A simple example."
+end
View
1  lib/fiveruns/dash/sinatra.rb
@@ -17,6 +17,7 @@ def self.start(token)
Fiveruns::Dash.start(:app => token) do |config|
config.add_recipe :sinatra
config.add_recipe :ruby
+ yield config if block_given?
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.