Skip to content

Instantly share code, notes, and snippets.

View thomasguillory's full-sized avatar

Thomas Guillory thomasguillory

View GitHub Profile
bundle exec cap staging invoke COMMAND="sudo /home/tech/.rbenv/shims/god -c /var/www/altagem/current/config/god.rb -D" hotfix-cap-release-path * ] 8:22 PM
triggering load callbacks
* 2014-07-01 20:23:06 executing `staging'
triggering start callbacks for `invoke'
* 2014-07-01 20:23:06 executing `multistage:ensure'
* 2014-07-01 20:23:06 executing `invoke'
* executing "sudo /home/tech/.rbenv/shims/god -c /var/www/altagem/current/config/god.rb -D"
servers: ["92.39.246.142"]
[92.39.246.142] executing command
** [out :: 92.39.246.142] I [2014-07-01 18:23:06] INFO: Loading /var/www/altagem/current/config/god.rb
# Mock modules
bs = angular.module 'ui.bootstrap', []
xed = angular.module 'xeditable', []
pp = angular.module 'pascalprecht.translate', []
routeModule = angular.module 'ngRoute', []
angular.module '$strap.directives', []
angular.module 'ui.calendar', []
angular.module 'ui.sortable', []
angular.module 'colorpicker.module', []
#!/bin/bash
# Update rbenv
cd ~/.rbenv/plugins/ruby-build/
git pull
# Install ruby 2.1.0
rbenv install 2.1.0
# Make ruby 2.1.0 default
class RegistrationService
def self.register attributes
user = User.create attributes[:user]
success = user && user.errors.empty?
{
user: user,
success: success
}