Sha256: 4603840a1db75b901b0e72dc2911d33fa2f3383103aec970bf18e7f87207c05c
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
require 'paratrooper/system_caller' module Paratrooper class PendingMigrationCheck attr_accessor :diff, :heroku, :match_tag_name, :system_caller def initialize(match_tag_name, heroku_wrapper, system_caller) self.heroku = heroku_wrapper self.match_tag_name = match_tag_name self.system_caller = system_caller end def migrations_waiting? call = %Q[git diff --shortstat #{last_deployed_commit} #{match_tag_name} -- db/migrate] self.diff = system_caller.execute(call) !diff.strip.empty? end def last_deployed_commit heroku.last_deploy_commit end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paratrooper-1.4.0 | lib/paratrooper/pending_migration_check.rb |