Cleanup testing files
This commit is contained in:
parent
a3f9f5598b
commit
0c18f3cc80
2 changed files with 0 additions and 31 deletions
|
@ -1,14 +0,0 @@
|
||||||
require_relative './gardner'
|
|
||||||
|
|
||||||
class Middle
|
|
||||||
attr_reader :tree
|
|
||||||
|
|
||||||
def initialize(app)
|
|
||||||
@app = app
|
|
||||||
@tree = Gardner::Plot.new(YAML.load_file('lib/sapling/example.yaml'))
|
|
||||||
end
|
|
||||||
|
|
||||||
def call(env)
|
|
||||||
@app.call(env)
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,17 +0,0 @@
|
||||||
require 'erb'
|
|
||||||
|
|
||||||
require_relative './gardner'
|
|
||||||
|
|
||||||
# Rack Stuff
|
|
||||||
class Greenhouse
|
|
||||||
|
|
||||||
def initialize
|
|
||||||
@response = ERB.new(File.read('lib/sapling/index.erb')).result(binding)
|
|
||||||
end
|
|
||||||
|
|
||||||
def call(_env)
|
|
||||||
['200', { 'Content-Type' => 'text/html' }, [@response]]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
run Greenhouse.new
|
|
Loading…
Reference in a new issue