This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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', [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegistrationService | |
def self.register attributes | |
user = User.create attributes[:user] | |
success = user && user.errors.empty? | |
{ | |
user: user, | |
success: success | |
} |