Class: JuxtaposeServer

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/juxtapose/application/app.rb

Instance Method Summary collapse

Instance Method Details

#projectObject



30
31
32
# File 'lib/juxtapose/application/app.rb', line 30

def project
  Project.new(screens_dir)
end

#screens_dirObject



34
35
36
37
38
# File 'lib/juxtapose/application/app.rb', line 34

def screens_dir
  [ File.join(Dir.pwd, 'spec/screens'), File.join(Dir.pwd, 'features/screens') ].select do |dir|
     File.exists?(dir)
  end
end