ops 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +9 -20
- data/Rakefile +1 -0
- data/lib/ops/server.rb +10 -5
- data/lib/ops/server/helpers.rb +3 -1
- data/lib/ops/server/views/layout.html.erb +65 -0
- data/lib/ops/server/views/version.html.erb +76 -0
- data/lib/ops/version.rb +1 -1
- data/ops.gemspec +2 -5
- data/tags +93 -0
- metadata +26 -59
- checksums.yaml +0 -15
- data/lib/ops/server/views/layout.html.slim +0 -22
- data/lib/ops/server/views/version.html.slim +0 -50
- data/lib/ops/server/views/version.json.rabl +0 -9
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
NTFiNmQ3OGNjMzM2ODdmNGYyYzE4YmQ3MDM3MzMyOGQ0YTVkM2MxYg==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
OGIyYWJiZWZjMDMyNmI0NTQ3MjMzNjUyZjk4NjIyNjc4ZmY1NWIwZg==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
OWNjN2Q0NWYxZDkxMTZiMGUwZGUyMjkyZDk2YzljMzRkNDgyYzg2MmM0ZGYx
|
10
|
-
ZWRhYTA2YTYyOThiY2NkM2E0ZDAxN2UzNjUyNzA1NzcwOGU5YzM1ZmYzMWU2
|
11
|
-
NGY0NmFmM2NkZTA0YWQ1MDVmMmM5MWE0YWYzMjg4MjNhMDE3MTE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
Yzk0NDI3MDM1ZDAzYmJmZGYzMDFlMzE4NzM2MzRlMjQ3OTk1MTEzZjdjMjBi
|
14
|
-
YTE1MDg2NGMwNjEwYzU3NmM1NTBjOGY1NTQwY2M2YzAwNjMzNGYyZDQyNzVh
|
15
|
-
ZTQ3ZjNiYzNmMmM0ZjYzODI0NDA4YmQ0OWYxYzRiNzE0YWE3Yjc=
|
@@ -1,22 +0,0 @@
|
|
1
|
-
doctype html
|
2
|
-
html
|
3
|
-
head
|
4
|
-
title= app_name
|
5
|
-
css:
|
6
|
-
td {padding: 0 5px; vertical-align: top;}
|
7
|
-
pre {margin: 0}
|
8
|
-
tr.even {background: #dddddd;}
|
9
|
-
.container {font-size: 20px; width: 1000px; padding-bottom: 100px;}
|
10
|
-
.label {float: left; width: 400px; font-weight: bold}
|
11
|
-
.spacer {clear: both; padding: 10px;}
|
12
|
-
.value {float: left; width: 500px; text-align: right;}
|
13
|
-
td {padding: 0 5px}
|
14
|
-
#previous_versions .value {clear: both; width: 1000px; text-align: left;}
|
15
|
-
#previous_versions tr.header td {font-weight: bold}
|
16
|
-
#previous_versions .value tr.even {background: #dddddd;}
|
17
|
-
#headers .value {clear: both; width: 1000px; text-align: left;}
|
18
|
-
#headers .value tr.even {background: #dddddd;}
|
19
|
-
.clear {clear: both;}
|
20
|
-
body
|
21
|
-
==yield
|
22
|
-
|
@@ -1,50 +0,0 @@
|
|
1
|
-
.container
|
2
|
-
.spacer
|
3
|
-
#version
|
4
|
-
.label= "#{app_name} Version"
|
5
|
-
.value
|
6
|
-
a href=version_link(@version.version_or_branch) = @version.version_or_branch
|
7
|
-
.spacer
|
8
|
-
#date
|
9
|
-
.label Date Deployed
|
10
|
-
.value= @version.deploy_date
|
11
|
-
.spacer
|
12
|
-
#commit
|
13
|
-
.label Last Commit
|
14
|
-
.value
|
15
|
-
a href=commit_link(@version.last_commit) = @version.last_commit
|
16
|
-
.spacer
|
17
|
-
#host
|
18
|
-
.label Host
|
19
|
-
.value= hostname
|
20
|
-
.spacer
|
21
|
-
#environment
|
22
|
-
.label Environment
|
23
|
-
.value= @version.environment
|
24
|
-
.spacer
|
25
|
-
#previous_versions
|
26
|
-
.label Previous Versions
|
27
|
-
.value
|
28
|
-
- unless @previous_versions.empty?
|
29
|
-
table
|
30
|
-
tr.header
|
31
|
-
td Time
|
32
|
-
td Version
|
33
|
-
td Commit
|
34
|
-
- @previous_versions.each_with_index do |version, i|
|
35
|
-
tr class=(i%2==0 ? 'even' : nil)
|
36
|
-
td= version[:time].strftime('%x %X')
|
37
|
-
td
|
38
|
-
a href=version_link(version[:version]) = version[:version]
|
39
|
-
td
|
40
|
-
a href=commit_link(version[:revision]) = version[:revision]
|
41
|
-
.spacer
|
42
|
-
#headers
|
43
|
-
.label Headers
|
44
|
-
.value
|
45
|
-
table
|
46
|
-
- @headers.sort_by{ |h| h.first }.each_with_index do |(header, value), i|
|
47
|
-
tr class=(i%2==0 ? 'even' : nil)
|
48
|
-
td= header
|
49
|
-
td= value
|
50
|
-
.clear
|