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 Credential | |
include ActiveModel::Validations | |
attr_accessor :screen_name, :oauth_token, :oauth_secret, :token, :description | |
validates_presence_of :screen_name, :oauth_token, :oauth_secret, :message => 'required' | |
validate :user_exists, :unless => :errors? | |
def initialize(attributes = {}) | |
attributes.each {|k, v| set_recognized_attribute(k, v) } |
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
require 'bundler/capistrano' | |
default_run_options[:pty] = true | |
ssh_options[:forward_agent] = true | |
set :user, "<<your webfaction user>>" | |
set :domain, "#{user}@<<your domain>>" | |
set :application, "<<your application>>" | |
set :repository, "<< your ssh repository link >>" | |
set :deploy_to, "/home/#{user}/webapps/#{application}" |