-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb
28 lines (25 loc) · 1.01 KB
/
config.rb
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
class Config
attr_accessor :transmissionURL,:transmissionPort,:transmissionUser,:transmissionPassword,:tvShowsPath, :logging, :loggingPath, :databasePath, :showrssFeed, :shanaFeed, :animePath, :torrentDir
def initialize(transmissionURL,transmissionPort,transmissionUser,transmissionPassword,tvShowsPath,logging,loggingPath,databasePath,showrssFeed,shanaFeed,animePath,torrentDir)
@transmissionURL = transmissionURL
@transmissionPort = transmissionPort
@transmissionUser = transmissionUser
@transmissionPassword = transmissionPassword
@tvShowsPath = tvShowsPath
@animePath = animePath
@logging = logging
@loggingPath = loggingPath
@databasePath = databasePath
@showrssFeed = showrssFeed
@shanaFeed = shanaFeed
@torrentDir = torrentDir
end
def transmission
return { host: transmissionURL, port: transmissionPort, user: transmissionUser, pass: transmissionPassword, path: "/transmission/rpc" }
end
def getLoggingType
if @logging == ":debug"
return :debug
end
end
end