-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.rb
More file actions
43 lines (34 loc) · 1.01 KB
/
Copy pathtest.rb
File metadata and controls
43 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require 'pry'
require 'http'
require 'rack/test'
require 'nokogiri'
require 'open-uri'
require 'hirb'
require 'upcastable'
require 'ostruct'
require 'concurrent'
require 'benchmark'
require 'graph-rank'
include Rack::Test::Methods
require_relative './config/environment.rb'
require_relative './init.rb'
require_relative 'application/controllers/app.rb'
Hirb.enable
old_print = Pry.config.print
Pry.config.print = proc do |*args|
Hirb::View.view_or_page_output(args[1]) || old_print.call(*args)
end
def app
WiKey::Api
end
gateway = WiKey::Wiki::Api
topic_mapper = WiKey::Wiki::TopicMapper.new(gateway)
topic_repo = WiKey::Repository::Topic
catalog_mapper = WiKey::Wiki::CatalogMapper.new(gateway)
catalog_repo = WiKey::Repository::Catalog
paragraph_mapper = WiKey::Wiki::ParagraphMapper.new(gateway)
paragraph_repo = WiKey::Repository::Paragraph
binding.pry
ENV['AWS_ACCESS_KEY_ID'] = app.config.AWS_ACCESS_KEY_ID
ENV['AWS_SECRET_ACCESS_KEY'] = app.config.AWS_SECRET_ACCESS_KEY
ENV['AWS_REGION'] = app.config.AWS_REGION