Use @varname to supress warnings

Change-Id: Ida6c3a8df348bd8c33f0b6caea3d71edea147b7d
This commit is contained in:
Spencer Krum 2015-03-11 17:12:23 -07:00
parent 873f8163c9
commit cf9bcbadf1
3 changed files with 35 additions and 35 deletions

View File

@ -1,7 +1,7 @@
<% if operatingsystem == "Fedora" then <% if @operatingsystem == "Fedora" then
# Fedora auto-mounts subsystems under /sys/fs/cgroup/ already, so no # Fedora auto-mounts subsystems under /sys/fs/cgroup/ already, so no
# mount section is needed. %> # mount section is needed. %>
<% elsif osfamily == "RedHat" then %> <% elsif @osfamily == "RedHat" then %>
mount { mount {
cpuset = /cgroup/cpuset; cpuset = /cgroup/cpuset;
@ -14,7 +14,7 @@ mount {
blkio = /cgroup/blkio; blkio = /cgroup/blkio;
} }
<% elsif ( operatingsystemrelease < '12.10' ) or ( operatingsystem != 'Ubuntu' ) then %> <% elsif ( @operatingsystemrelease < '12.10' ) or ( @operatingsystem != 'Ubuntu' ) then %>
mount { mount {
cpu = /sys/fs/cgroup/cpu; cpu = /sys/fs/cgroup/cpu;
cpuacct = /sys/fs/cgroup/cpuacct; cpuacct = /sys/fs/cgroup/cpuacct;
@ -25,37 +25,37 @@ mount {
<% end %> <% end %>
group jenkins { group jenkins {
perm { perm {
task { task {
uid = jenkins; uid = jenkins;
gid = jenkins; gid = jenkins;
} }
admin { admin {
uid = root; uid = root;
gid = root; gid = root;
} }
} }
} }
group jenkins/children { group jenkins/children {
perm { perm {
task { task {
uid = jenkins; uid = jenkins;
gid = jenkins; gid = jenkins;
} }
admin { admin {
uid = root; uid = root;
gid = root; gid = root;
} }
} }
memory { memory {
memory.soft_limit_in_bytes = <%= (memorytotalbytes.to_f * 0.75).to_i %>; memory.soft_limit_in_bytes = <%= (@memorytotalbytes.to_f * 0.75).to_i %>;
memory.limit_in_bytes = <%= (memorytotalbytes.to_f * 0.9).to_i %>; memory.limit_in_bytes = <%= (@memorytotalbytes.to_f * 0.9).to_i %>;
<% if (operatingsystem == "Fedora") and (operatingsystemrelease == "18") then <% if (@operatingsystem == "Fedora") and (@operatingsystemrelease == "18") then
# Because of Red Hat bug 918951, swap management doesn't # Because of Red Hat bug 918951, swap management doesn't
# work in Fedora 18 but should be fixed in 19. %> # work in Fedora 18 but should be fixed in 19. %>
<% else %> <% else %>
memory.memsw.limit_in_bytes = <%= (memorytotalbytes.to_f * 0.9).to_i %>; memory.memsw.limit_in_bytes = <%= (@memorytotalbytes.to_f * 0.9).to_i %>;
<% end %> <% end %>
} }
} }

View File

@ -1,4 +1,4 @@
[jenkins] [jenkins]
user=<%= username %> user=<%= @username %>
password=<%= password %> password=<%= @password %>
url=<%= url %> url=<%= @url %>

View File

@ -10,7 +10,7 @@ function makeDoubleDelegate(function1, function2) {
function chgeLogo() { function chgeLogo() {
var imgs=document.getElementsByTagName("img"); var imgs=document.getElementsByTagName("img");
var imgTag = document.createElement("img"); var imgTag = document.createElement("img");
imgTag.setAttribute("src","https://<%= vhost_name %>/plugin/simple-theme-plugin/title.png"); imgTag.setAttribute("src","https://<%= @vhost_name %>/plugin/simple-theme-plugin/title.png");
imgTag.setAttribute("style", "vertical-align: middle;padding-left: 0.75em;"); imgTag.setAttribute("style", "vertical-align: middle;padding-left: 0.75em;");
imgs[0].parentNode.appendChild(imgTag); imgs[0].parentNode.appendChild(imgTag);
var spanTag = document.createElement("span"); var spanTag = document.createElement("span");