Skip to content

Instantly share code, notes, and snippets.

View Florent2's full-sized avatar

Florent Guilleux Florent2

View GitHub Profile
@Florent2
Florent2 / tddium_post_build.rake
Created September 12, 2012 16:56 — forked from semipermeable/tddium_post_build.rake
Tddium post-build task to deploy into Heroku
def run_cmd(cmd)
cmd_output = `#{cmd}`
if $?.to_i.zero?
true
else
puts cmd_output
false
end
end
- show ||= 'cards'
= div_for user, class: "user-#{show}" do
- if show == 'list'
.user-description
.user-avatar
= avatar(user, class: "user-img")
.user-info
= link_to user.name, "", class: "name"
%p.role= user.role_name