Class: Paratrooper::PendingMigrationCheck
- Inherits:
-
Object
- Object
- Paratrooper::PendingMigrationCheck
- Defined in:
- lib/paratrooper/pending_migration_check.rb
Instance Attribute Summary collapse
-
#diff ⇒ Object
Returns the value of attribute diff.
-
#heroku ⇒ Object
Returns the value of attribute heroku.
-
#match_tag_name ⇒ Object
Returns the value of attribute match_tag_name.
-
#system_caller ⇒ Object
Returns the value of attribute system_caller.
Instance Method Summary collapse
-
#initialize(match_tag_name, heroku_wrapper, system_caller) ⇒ PendingMigrationCheck
constructor
A new instance of PendingMigrationCheck.
- #last_deployed_commit ⇒ Object
- #migrations_waiting? ⇒ Boolean
Constructor Details
#initialize(match_tag_name, heroku_wrapper, system_caller) ⇒ PendingMigrationCheck
Returns a new instance of PendingMigrationCheck.
7 8 9 10 11 |
# File 'lib/paratrooper/pending_migration_check.rb', line 7 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 |
Instance Attribute Details
#diff ⇒ Object
Returns the value of attribute diff.
5 6 7 |
# File 'lib/paratrooper/pending_migration_check.rb', line 5 def diff @diff end |
#heroku ⇒ Object
Returns the value of attribute heroku.
5 6 7 |
# File 'lib/paratrooper/pending_migration_check.rb', line 5 def heroku @heroku end |
#match_tag_name ⇒ Object
Returns the value of attribute match_tag_name.
5 6 7 |
# File 'lib/paratrooper/pending_migration_check.rb', line 5 def match_tag_name @match_tag_name end |
#system_caller ⇒ Object
Returns the value of attribute system_caller.
5 6 7 |
# File 'lib/paratrooper/pending_migration_check.rb', line 5 def system_caller @system_caller end |
Instance Method Details
#last_deployed_commit ⇒ Object
17 18 19 |
# File 'lib/paratrooper/pending_migration_check.rb', line 17 def last_deployed_commit @last_deploy_commit ||= heroku.last_deploy_commit end |
#migrations_waiting? ⇒ Boolean
13 14 15 |
# File 'lib/paratrooper/pending_migration_check.rb', line 13 def migrations_waiting? @migrations_waiting ||= check_for_pending_migrations end |