I hereby claim:
- I am lachie on github.
- I am lachie (https://keybase.io/lachie) on keybase.
- I have a public key whose fingerprint is 66D8 D27A 35C5 4CFD E7DD CE3E 8C2B 8233 59AF C8CB
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
set -e | |
set -x | |
fleetctl destroy $1 || true | |
fleetctl submit units/$1 | |
fleetctl start $1 | |
fleetctl journal |
if memo[/notification/] | |
Notifications.send_receipt = false | |
Notifications.deliver_recruitment(params['recruitment']) | |
Notifications.send_receipt = false | |
Notifications.deliver_notification_for_resourcing(params['recruitment']) | |
end |
require File.dirname(__FILE__) + '/../spec_helper' | |
require File.dirname(__FILE__) + '/../../app/models/notifications' | |
class Notifications | |
def self.spec_new(method_name,*parameters) | |
n = self.allocate | |
n.__send__ :initialize_defaults, method_name | |
yield(n) if block_given? | |
n.__send__(method_name, *parameters) | |
return n |
source 'https://rubygems.org' | |
gem 'rspec', '~> 3.1.0' |
class Date | |
def to_words | |
today = Date.today | |
case self | |
when today | |
"Today" | |
when today - 1 | |
"Yesterday" | |
when today + 1 |
def self.next(username) | |
list = find(:all,:order => 'last_name') | |
list[list.index {|u| u.username == username}+1] | |
end |
.note | |
This information comes from LDAP. To edit it, | |
=link_to 'please click here', 'http://people.rsp.com.au' |
named_scope :with_group, lambda {|group| | |
{:conditions => {:group_id => group.id, :group_type => group.class.base_class.name.to_s}} | |
} |
class User < ActiveRecord::Base | |
has_many :contracts | |
... | |
end | |
class Contract < ActiveRecord::Base | |
end |