Class: CreateGithubRelease::Assertions::BundleIsUpToDate
- Inherits:
-
CreateGithubRelease::AssertionBase
- Object
- CreateGithubRelease::AssertionBase
- CreateGithubRelease::Assertions::BundleIsUpToDate
- Defined in:
- lib/create_github_release/assertions/bundle_is_up_to_date.rb
Overview
Assert that project.release+branch does not exist
Checks both the local repository and the remote repository.
Instance Attribute Summary
Attributes inherited from CreateGithubRelease::AssertionBase
Instance Method Summary collapse
-
#assert
Make sure the bundle is up to date.
Methods inherited from CreateGithubRelease::AssertionBase
#backtick_debug?, #error, #initialize, #print, #puts
Methods included from BacktickDebug
Constructor Details
This class inherits a constructor from CreateGithubRelease::AssertionBase
Instance Method Details
#assert
This method returns an undefined value.
Make sure the bundle is up to date
34 35 36 37 38 39 40 41 |
# File 'lib/create_github_release/assertions/bundle_is_up_to_date.rb', line 34 def assert print 'Checking that the bundle is up to date...' if File.exist?('Gemfile.lock') run_bundle_update else run_bundle_install end end |