bacuview 1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. data/AUTHORS +2 -0
  2. data/ChangeLog +454 -0
  3. data/README.bacuview +7 -0
  4. data/README.rails +153 -0
  5. data/Rakefile +94 -0
  6. data/app/controllers/application.rb +11 -0
  7. data/app/controllers/client_controller.rb +27 -0
  8. data/app/controllers/job_controller.rb +100 -0
  9. data/app/controllers/jobmedia_controller.rb +2 -0
  10. data/app/controllers/media_controller.rb +44 -0
  11. data/app/controllers/misc_controller.rb +14 -0
  12. data/app/controllers/pool_controller.rb +38 -0
  13. data/app/helpers/application_helper.rb +88 -0
  14. data/app/helpers/client_finder.rb +112 -0
  15. data/app/helpers/client_helper.rb +45 -0
  16. data/app/helpers/job_helper.rb +56 -0
  17. data/app/helpers/jobmedia_helper.rb +2 -0
  18. data/app/helpers/media_helper.rb +14 -0
  19. data/app/helpers/misc_helper.rb +15 -0
  20. data/app/helpers/pool_helper.rb +2 -0
  21. data/app/models/client.rb +14 -0
  22. data/app/models/job.rb +21 -0
  23. data/app/models/jobmedia.rb +9 -0
  24. data/app/models/media.rb +23 -0
  25. data/app/models/pool.rb +13 -0
  26. data/app/views/client/_spec.rhtml +1 -0
  27. data/app/views/client/check.rhtml +1 -0
  28. data/app/views/client/index.rhtml +27 -0
  29. data/app/views/client/show.rhtml +8 -0
  30. data/app/views/job/_spec.rhtml +7 -0
  31. data/app/views/job/index.rhtml +38 -0
  32. data/app/views/job/last.rhtml +52 -0
  33. data/app/views/job/show.rhtml +19 -0
  34. data/app/views/job/spec.rhtml +38 -0
  35. data/app/views/layouts/bacuview-layout.rhtml +50 -0
  36. data/app/views/media/_spec.rhtml +1 -0
  37. data/app/views/media/index.rhtml +30 -0
  38. data/app/views/media/show.rhtml +8 -0
  39. data/app/views/misc/about.rhtml +2 -0
  40. data/app/views/misc/help.rhtml +1 -0
  41. data/app/views/pool/_spec.rhtml +1 -0
  42. data/app/views/pool/index.rhtml +29 -0
  43. data/app/views/pool/show.rhtml +8 -0
  44. data/bin/bacuview +3 -0
  45. data/config/bacuview.yml.template +2 -0
  46. data/config/boot.rb +19 -0
  47. data/config/database.yml.template +13 -0
  48. data/config/environment.rb +87 -0
  49. data/config/environments/development.rb +19 -0
  50. data/config/environments/production.rb +19 -0
  51. data/config/environments/test.rb +19 -0
  52. data/config/routes.rb +61 -0
  53. data/log/development.log +0 -0
  54. data/log/production.log +0 -0
  55. data/log/test.log +0 -0
  56. data/public/404.html +8 -0
  57. data/public/500.html +8 -0
  58. data/public/bacu-bat.png +0 -0
  59. data/public/bacuweb.css +7 -0
  60. data/public/client-sophie-thumb.png +0 -0
  61. data/public/client-sophie.png +0 -0
  62. data/public/clients-thumb.png +0 -0
  63. data/public/clients.png +0 -0
  64. data/public/dispatch.cgi +10 -0
  65. data/public/dispatch.fcgi +24 -0
  66. data/public/dispatch.rb +10 -0
  67. data/public/favicon.ico +0 -0
  68. data/public/home.html +108 -0
  69. data/public/images/bacu-bat.png +0 -0
  70. data/public/images/busy.png +0 -0
  71. data/public/images/dunno.png +0 -0
  72. data/public/images/error.png +0 -0
  73. data/public/images/okay.png +0 -0
  74. data/public/images/pool_pie.png +0 -0
  75. data/public/install.html +156 -0
  76. data/public/javascripts/application.js +2 -0
  77. data/public/javascripts/client_check.js +24 -0
  78. data/public/javascripts/controls.js +815 -0
  79. data/public/javascripts/dragdrop.js +724 -0
  80. data/public/javascripts/effects.js +953 -0
  81. data/public/javascripts/prototype.js +1985 -0
  82. data/public/job-1449-thumb.png +0 -0
  83. data/public/job-1449.png +0 -0
  84. data/public/job-last-thumb.png +0 -0
  85. data/public/job-last.png +0 -0
  86. data/public/jobs-thumb.png +0 -0
  87. data/public/jobs.png +0 -0
  88. data/public/media-39-thumb.png +0 -0
  89. data/public/media-39.png +0 -0
  90. data/public/media-thumb.png +0 -0
  91. data/public/media.png +0 -0
  92. data/public/news.html +144 -0
  93. data/public/pool-lto3-thumb.png +0 -0
  94. data/public/pool-lto3.png +0 -0
  95. data/public/pools-thumb.png +0 -0
  96. data/public/pools.png +0 -0
  97. data/public/robots.txt +1 -0
  98. data/public/stylesheets/bacuview.css +37 -0
  99. data/script/about +3 -0
  100. data/script/breakpointer +3 -0
  101. data/script/console +3 -0
  102. data/script/destroy +3 -0
  103. data/script/generate +3 -0
  104. data/script/performance/benchmarker +3 -0
  105. data/script/performance/profiler +3 -0
  106. data/script/plugin +3 -0
  107. data/script/process/reaper +3 -0
  108. data/script/process/spawner +3 -0
  109. data/script/process/spinner +3 -0
  110. data/script/runner +3 -0
  111. data/script/server +3 -0
  112. metadata +168 -0
Binary file
Binary file
Binary file
Binary file
Binary file
data/public/jobs.png ADDED
Binary file
Binary file
Binary file
Binary file
data/public/media.png ADDED
Binary file
data/public/news.html ADDED
@@ -0,0 +1,144 @@
1
+ <html>
2
+ <head>
3
+ <title>NEWS</title>
4
+ <link href="/bacuweb.css" rel="Stylesheet"
5
+ media="screen" type="text/css" />
6
+ </head>
7
+ <body>
8
+ <h1>NEWS</h1>
9
+
10
+ <h2> Sun, 2006 Dec 3 </h2>
11
+ <ul>
12
+
13
+ <li> Released version 1.5, corresponding to SVN revision 111.
14
+
15
+ <li> Get ready for the release of version 1.2 of Rails, which
16
+ deprecates @params, human_size(), and periods in routes. </li>
17
+
18
+ <li> Generate a .gem file to simplify installation, which is now
19
+ down to installing ruby, installing rubygems, and using gem to
20
+ install Bacuview which then pulls in its Rails dependency.
21
+
22
+ <li> Added the bacuwatch program to the bacuview project. This can
23
+ be used to send periodic email messages to users to give them a
24
+ sanity check on the state of the backups of their desktop or
25
+ laptop computers.
26
+
27
+ <li> Added a job/last page, which shows the last successful full,
28
+ differential, and incremental run of a job, with a count of the
29
+ files and amount of data backed up. This provides a way for
30
+ people to get a quick status check on the backups of their
31
+ workstations.
32
+
33
+ <li> Added a bar graph to the Pool view, showing how the media are
34
+ distributed among pools.
35
+
36
+ <li> Got the column sorting feature working even when using
37
+ My-not-quite-SQL as the database.
38
+
39
+ <li> Added a two-column sort feature, and trimmed a few marginally
40
+ useful columns from the index.rhtml pages. The two-column
41
+ sorting can, for example, generate a view of the Media page
42
+ that is sorted first by pool and then by expiration time within
43
+ each pool by clicking on the "Expires" and "Pool Name" column
44
+ headers.
45
+
46
+ <li> Take a guess at how many autochangers are in use, and adjust
47
+ the display of the "slot" column accordingly. Also eliminated
48
+ the "rev" URL parameter, and tacked this information on the end
49
+ of the sort parameter instead.
50
+
51
+ </ul>
52
+ <h2> Sun, 2006 May 14 </h2>
53
+ <ul>
54
+
55
+ <li> Released version 1.4, corresponding to SVN revision 67. It's
56
+ my mother's day gift to the Bacula community.
57
+
58
+ <li> Changed the left navigation bar to select jobs rather than clients;
59
+ also dropped the anomalous jobs option. </li>
60
+
61
+ <li> Added the Bacuview web site to the Bacuview application as
62
+ /home. Deleted the doc/NEWS and doc/INSTALL
63
+ files in preference to the HTML versions, and changed the
64
+ installation instructions to recommend a released tar file
65
+ rather than a direct subversion checkout. </li>
66
+
67
+ <li> Scaled the size of the client status images to 1 em square, and
68
+ center them. </li>
69
+
70
+ <li> Add a misc controller, currently supporting fairly skeletal
71
+ /help and /about pages. </li>
72
+
73
+ <li> Changed the CSS code to no longer down-case the information
74
+ displayed in the job table. </li>
75
+
76
+ <li> To assist with development, added a rake clean target, and a
77
+ TODAY configuration variable. </li>
78
+
79
+ </ul>
80
+ <h2> Sat, 2006 Mar 18 </h2>
81
+ <ul>
82
+
83
+ <li> Version 1.3, the initial MySQL-supporting release,
84
+ corresponding to Subversion revision 43, released. </li>
85
+
86
+ <li> This release provides support for both MySQL and Postgres
87
+ databases. All that's needed to support a MySQL database is to
88
+ set the adapter to mysql in the config/database.yml file.
89
+ Bacuview picks this up and performs behind-the-scenes magic to
90
+ deal with the naming differences between Postgres and
91
+ MySQL. </li>
92
+
93
+ <li> The config/custom.yml file is now names bacuview.yml, and the
94
+ format is a bit simpler. See bacuview.yml.template. </li>
95
+
96
+ <li> Added an "In Changer" column to the Media view. </li>
97
+
98
+ <li> Corrected an error in the display of job levels. </li>
99
+
100
+ <li> Fix "rake dist" to simply pull from svn, clean up, and generate
101
+ a tar file from there. </li>
102
+
103
+ </ul>
104
+ <h2> Sun, 2006 Feb 26 </h2>
105
+ <ul>
106
+
107
+ <li> Version 1.2, corresponding to Subversion revision 30, released
108
+ to RubyForge. </li>
109
+
110
+ <li> Add media expiration time and retention period columns to the
111
+ media view. </li>
112
+
113
+ <li> Load customization parameters from a config/custom.yml at
114
+ server startup time. </li>
115
+
116
+ <li> Automate the client to host name mapping needed to check client
117
+ status. </li>
118
+
119
+ <li> Made the web pages more standards-compliant. </li>
120
+
121
+ <li> Avoid setting cookies so as to not upset the powers that be. </li>
122
+
123
+ </ul>
124
+ <h2> Wed, 2006 Feb 15 </h2>
125
+ <ul>
126
+
127
+ <li> Version 1.1, corresponding to Subversion revision 19, released
128
+ to RubyForge. </li>
129
+
130
+ <li> Added the AJAX support required to provide an on-demand client
131
+ connectivity report from the client view. </li>
132
+
133
+ <li> Added a :joins clause to pull the pool name and type into each
134
+ media record. Updated media/index.rhtml to match. </li>
135
+
136
+ </ul>
137
+ <h2> Thu, 2006 Jan 26 </h2>
138
+ <ul>
139
+
140
+ <li> Version 1.0 released to RubyForge. </li>
141
+
142
+ </ul>
143
+ </body>
144
+ </html>
Binary file
Binary file
Binary file
data/public/pools.png ADDED
Binary file
data/public/robots.txt ADDED
@@ -0,0 +1 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
@@ -0,0 +1,37 @@
1
+ body {
2
+ background: lightyellow; margin: 0; padding: 0;
3
+ background-image: url('/images/bacu-bat.png');
4
+ background-repeat: no-repeat; background-position: 8px 8px;
5
+ }
6
+
7
+ table td { vertical-align: top; }
8
+ a:link, a:visited { text-decoration: none; font-weight: bold; color: navy; }
9
+ a img { border: none; }
10
+
11
+ .content {
12
+ padding-left: 1ex; padding-top: 1ex;
13
+ border-top: solid brown; border-left: solid brown;
14
+ }
15
+ .nowrap { white-space: nowrap; }
16
+ .lower { white-space: nowrap; text-transform: lowercase; }
17
+ .right { text-align: right; }
18
+ .head { background: tan; }
19
+ .blue { background: lightblue; }
20
+ .gray { background: lightgray; }
21
+ .skey { border-bottom: solid black; }
22
+ .key { font-weight: bold; text-align: right; }
23
+ .em1 { width: 1em; height: 1em; }
24
+ .center { text-align :center; }
25
+
26
+ .normal { color: black; }
27
+ .okay { color: blue; }
28
+ .pending { color: darkgreen; }
29
+ .cancel { color: brown; }
30
+ .error { color: red; font-weight: bold; }
31
+ .oops { color: green; }
32
+
33
+ .graph { width: 100px; padding: 2px; position: relative; /* IE is dumb */ }
34
+ .graph .bar {
35
+ background: limegreen; text-align: center;
36
+ display: block; position: relative;
37
+ }
data/script/about ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/about'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/breakpointer'
data/script/console ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/console'
data/script/destroy ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/destroy'
data/script/generate ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/generate'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/benchmarker'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/profiler'
data/script/plugin ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/plugin'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/reaper'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/spawner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/spinner'
data/script/runner ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/runner'
data/script/server ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/server'
metadata ADDED
@@ -0,0 +1,168 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.0
3
+ specification_version: 1
4
+ name: bacuview
5
+ version: !ruby/object:Gem::Version
6
+ version: "1.5"
7
+ date: 2006-12-03 00:00:00 -05:00
8
+ summary: A web app for monitoring a Bacula backup system.
9
+ require_paths:
10
+ - lib
11
+ email: john@kodis.org
12
+ homepage:
13
+ rubyforge_project:
14
+ description: Bacuview is a web application that provides a view into the current state of a Bacula backup system.
15
+ autorequire:
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: false
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - John Kodis
31
+ files:
32
+ - Rakefile
33
+ - README.bacuview
34
+ - README.rails
35
+ - ChangeLog
36
+ - AUTHORS
37
+ - log/development.log
38
+ - log/test.log
39
+ - log/production.log
40
+ - app/helpers/jobmedia_helper.rb
41
+ - app/helpers/client_helper.rb
42
+ - app/helpers/media_helper.rb
43
+ - app/helpers/pool_helper.rb
44
+ - app/helpers/job_helper.rb
45
+ - app/helpers/client_finder.rb
46
+ - app/helpers/misc_helper.rb
47
+ - app/helpers/application_helper.rb
48
+ - app/models/client.rb
49
+ - app/models/media.rb
50
+ - app/models/pool.rb
51
+ - app/models/job.rb
52
+ - app/models/jobmedia.rb
53
+ - app/controllers/jobmedia_controller.rb
54
+ - app/controllers/job_controller.rb
55
+ - app/controllers/client_controller.rb
56
+ - app/controllers/media_controller.rb
57
+ - app/controllers/application.rb
58
+ - app/controllers/pool_controller.rb
59
+ - app/controllers/misc_controller.rb
60
+ - app/views/media/show.rhtml
61
+ - app/views/media/index.rhtml
62
+ - app/views/media/_spec.rhtml
63
+ - app/views/layouts/bacuview-layout.rhtml
64
+ - app/views/pool/show.rhtml
65
+ - app/views/pool/index.rhtml
66
+ - app/views/pool/_spec.rhtml
67
+ - app/views/job/show.rhtml
68
+ - app/views/job/index.rhtml
69
+ - app/views/job/spec.rhtml
70
+ - app/views/job/_spec.rhtml
71
+ - app/views/job/last.rhtml
72
+ - app/views/client/check.rhtml
73
+ - app/views/client/show.rhtml
74
+ - app/views/client/index.rhtml
75
+ - app/views/client/_spec.rhtml
76
+ - app/views/misc/about.rhtml
77
+ - app/views/misc/help.rhtml
78
+ - script/performance
79
+ - script/process
80
+ - script/breakpointer
81
+ - script/console
82
+ - script/server
83
+ - script/destroy
84
+ - script/runner
85
+ - script/about
86
+ - script/generate
87
+ - script/plugin
88
+ - script/performance/benchmarker
89
+ - script/performance/profiler
90
+ - script/process/spawner
91
+ - script/process/reaper
92
+ - script/process/spinner
93
+ - public/images
94
+ - public/javascripts
95
+ - public/stylesheets
96
+ - public/dispatch.fcgi
97
+ - public/dispatch.cgi
98
+ - public/dispatch.rb
99
+ - public/job-last.png
100
+ - public/robots.txt
101
+ - public/500.html
102
+ - public/404.html
103
+ - public/favicon.ico
104
+ - public/job-1449-thumb.png
105
+ - public/job-1449.png
106
+ - public/jobs-thumb.png
107
+ - public/jobs.png
108
+ - public/media-39-thumb.png
109
+ - public/media-39.png
110
+ - public/media-thumb.png
111
+ - public/media.png
112
+ - public/pool-lto3-thumb.png
113
+ - public/pool-lto3.png
114
+ - public/pools-thumb.png
115
+ - public/pools.png
116
+ - public/bacu-bat.png
117
+ - public/client-sophie-thumb.png
118
+ - public/client-sophie.png
119
+ - public/clients-thumb.png
120
+ - public/clients.png
121
+ - public/install.html
122
+ - public/news.html
123
+ - public/job-last-thumb.png
124
+ - public/home.html
125
+ - public/bacuweb.css
126
+ - public/images/busy.png
127
+ - public/images/bacu-bat.png
128
+ - public/images/dunno.png
129
+ - public/images/error.png
130
+ - public/images/okay.png
131
+ - public/images/pool_pie.png
132
+ - public/javascripts/client_check.js
133
+ - public/javascripts/prototype.js
134
+ - public/javascripts/effects.js
135
+ - public/javascripts/dragdrop.js
136
+ - public/javascripts/controls.js
137
+ - public/javascripts/application.js
138
+ - public/stylesheets/bacuview.css
139
+ - config/environment.rb
140
+ - config/routes.rb
141
+ - config/boot.rb
142
+ - config/bacuview.yml.template
143
+ - config/database.yml.template
144
+ - config/environments/test.rb
145
+ - config/environments/development.rb
146
+ - config/environments/production.rb
147
+ test_files: []
148
+
149
+ rdoc_options: []
150
+
151
+ extra_rdoc_files: []
152
+
153
+ executables:
154
+ - bacuview
155
+ extensions: []
156
+
157
+ requirements: []
158
+
159
+ dependencies:
160
+ - !ruby/object:Gem::Dependency
161
+ name: rails
162
+ version_requirement:
163
+ version_requirements: !ruby/object:Gem::Version::Requirement
164
+ requirements:
165
+ - - ">"
166
+ - !ruby/object:Gem::Version
167
+ version: 0.0.0
168
+ version: