Sha256: 98565ada10631e8db1cbfb3c780dd124322b26c93d94be9ec7576cdb03586df2
Contents?: true
Size: 727 Bytes
Versions: 6
Compression:
Stored size: 727 Bytes
Contents
# encoding: utf-8 require 'rails_best_practices/checks/check' module RailsBestPractices module Checks # Check config/deploy.rb file to make sure using the bundler's capistrano recipe. # # Implementation: check the method call, # if there is a method call "namespace" with argument ":bundler", then it should use bundler's capistrano recipe. class DryBundlerInCapistranoCheck < Check def interesting_nodes [:call] end def interesting_files /config\/deploy.rb/ end def evaluate_start(node) if :namespace == node.message and equal?(node.arguments[1], "bundler") add_error "dry bundler in capistrano" end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems