Commit a13876a

mo khan <mo@mokhan.ca>
2015-05-24 05:28:24
hound happy.
1 parent 18008c1
Changed files (3)
app/helpers/application_helper.rb
@@ -3,7 +3,7 @@ module ApplicationHelper
     secure_host = "https://secure.gravatar.com/avatar"
     options = "s=#{size}&d=mm"
     image_tag "#{secure_host}/#{user.gravatar_id}?#{options}",
-      alt: user.username,
-      class: "gravatar"
+              alt: user.username,
+              class: "gravatar"
   end
 end
app/models/training_session.rb
@@ -26,7 +26,7 @@ class TrainingSession < ActiveRecord::Base
         end
 
         session.exercise_sessions.create!(
-          target_weight: exercise_row['warmup']['targetWeight'],
+          target_weight: exercise_row["warmup"]["targetWeight"],
           exercise_workout: exercise_workout,
           sets: sets
         )
config/deploy.rb
@@ -1,15 +1,15 @@
 # config valid only for current version of Capistrano
-lock '3.4.0'
+lock "3.4.0"
 
-set :application, 'stronglifters'
-set :repo_url, 'git@github.com:stronglifters/surface.git'
-set :branch, 'master'
+set :application, "stronglifters"
+set :repo_url, "git@github.com:stronglifters/surface.git"
+set :branch, "master"
 
 # Default branch is :master
 # ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
 
 # Default deploy_to directory is /var/www/my_app_name
-# set :deploy_to, '/var/www/my_app_name'
+# set :deploy_to, "/var/www/my_app_name"
 
 # Default value for :scm is :git
 set :scm, :git
@@ -24,10 +24,20 @@ set :scm, :git
 # set :pty, true
 
 # Default value for :linked_files is []
-set :linked_files, fetch(:linked_files, []).push('config/database.yml', ".env.#{fetch(:rails_env, "production")}")
+set :linked_files, fetch(:linked_files, []).push(
+  "config/database.yml",
+  ".env.#{fetch(:rails_env, "production")}",
+)
 
 # Default value for linked_dirs is []
-set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system')
+set :linked_dirs, fetch(:linked_dirs, []).push(
+  "log",
+  "tmp/pids",
+  "tmp/cache",
+  "tmp/sockets",
+  "vendor/bundle",
+  "public/system",
+)
 
 # Default value for default_env is {}
 # set :default_env, { path: "/opt/ruby/bin:$PATH" }
@@ -35,16 +45,16 @@ set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', '
 # Default value for keep_releases is 5
 # set :keep_releases, 5
 
-set :ssh_options, { forward_agent: true }
+set :ssh_options, forward_agent: true
 set :rbenv_type, :system
-set :rbenv_ruby, '2.2.2'
+set :rbenv_ruby, "2.2.2"
 
 namespace :deploy do
   after :restart, :clear_cache do
     on roles(:web), in: :groups, limit: 3, wait: 10 do
       # Here we can do anything such as:
       # within release_path do
-      #   execute :rake, 'cache:clear'
+      #   execute :rake, "cache:clear"
       # end
     end
   end