libraries/deploy-context/deploy/context.rb in deploy-context-2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8.4.gbb2ab14.12.g0bc028d vs libraries/deploy-context/deploy/context.rb in deploy-context-2.13.0

- old
+ new

@@ -19,81 +19,11 @@ def check_folder(folder) FileUtils.mkdir_p(context_folder) unless present_localy? end - def version - git_build(self) - log "Getting version info for #{context_folder} and version should be #{GitVersionBump.version(true)}" - Gem::Version.new(GitVersionBump.version(true)) - end - - def cycle - ruby_cycle(self) - end - - def test_context_successful? - log "Check if #{context_name} is install #{version}" - if gem_installed?(self) - log "Test context #{context_name} was successfully install on version #{version}" - true - else - log "Test context #{context_name} has failed to install #{version}" - false - end - cookbook_test(self) - cucumber_test(self) - end - - def build - ruby_build(self) - cookbook_build(self) - check_folder get_context_file(self, 'contexts') - end - - def commit - git_commit(self) - cookbook_install(self) - end - - def release - log "\n\nRelease #{context_name} at version #{version}" - cookbook_push(self) - ruby_release(self) - git_release(self) - end - - def install - ruby_install(self) - end - - def clean - clean_folder(self, 'contexts') - ruby_clean(self) - cookbook_clean(self) - end - def show_new_version(level) log "#{level} bump #{context_name} at newer version #{version}" - end - - def patch_bump - GitVersionBump.tag_version("#{GitVersionBump.major_version(true)}.#{GitVersionBump.minor_version(true)}.#{GitVersionBump.patch_version(true) + 1}") - show_new_version('Patch') - end - - def minor_bump - GitVersionBump.tag_version("#{GitVersionBump.major_version(true)}.#{GitVersionBump.minor_version(true) + 1}.0") - show_new_version('Minor') - end - - def major_bump - GitVersionBump.tag_version("#{GitVersionBump.major_version(true) + 1}.0.0") - show_new_version('Major') - end - - def wait_until_release_available - wait_until_release_available unless is_present_publicly? end def is_present_publicly? ruby_check_if_available_public(self) end \ No newline at end of file