Sha256: 97f604d1e9acb86d0741e6a746878d6e52128cdc2132a57677cfccdc3d753a9b
Contents?: true
Size: 1.11 KB
Versions: 15
Compression:
Stored size: 1.11 KB
Contents
# encoding: utf-8 require 'rails_best_practices/reviews/review' module RailsBestPractices module Reviews # Review config/deploy.rb file to make sure using the bundler's capistrano recipe. # # See the best practice details here http://rails-bestpractices.com/posts/51-dry-bundler-in-capistrano # # Implementation: # # Review process: # only check the command nodes to see if there is bundler namespace in config/deploy.rb file, # # if the message of command node is "namespace" and the first argument is "bundler", # then it should use bundler's capistrano recipe. class DryBundlerInCapistranoReview < Review interesting_nodes :command interesting_files DEPLOY_FILES def url "http://rails-bestpractices.com/posts/51-dry-bundler-in-capistrano" end # check call node to see if it is with message "namespace" and argument "bundler". def start_command(node) if "namespace" == node.message.to_s && "bundler" == node.arguments.all[0].to_s add_error "dry bundler in capistrano" end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems