public
Rubygem
Description: Take FogBugz offline with you
Clone URL: git://github.com/francois/fogbugz_offline.git
Search Repo:
Untested (but should be working, yeah right) #add_project, #add_token, 
#remove_token in GlobalConfig.
francois (author)
Thu May 15 13:28:42 -0700 2008
commit  acee378c9ef246ae3a2622835a8b7903ed70e67f
tree    31a527fb19d5fa8c4457d6c8694b02139ea4fb76
parent  3f9b7fa5aa364b0b9233b3219b8555a68fa0f45f
...
14
15
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
18
19
...
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
0
@@ -14,6 +14,26 @@
0
       end
0
     end
0
 
0
+ def add_project(project_url)
0
+ projects[project_url] = Array.new
0
+ end
0
+
0
+ def add_token(project_url, token)
0
+ project(project_url) << token
0
+ end
0
+
0
+ def remove_token(project_url, token)
0
+ project(project_url).delete(token)
0
+ end
0
+
0
+ def projects
0
+ @config["projects"] ||= Array.new
0
+ end
0
+
0
+ def project(url)
0
+ projects[project_url] ||= []
0
+ end
0
+
0
     def write
0
       @path.dirname.mkdir unless @path.dirname.directory?
0
       File.open(@path, "wb") do |io|

Comments

    No one has commented yet.