Module: StiDeploy

Defined in:
lib/sti_deploy.rb,
lib/sti_deploy/git.rb,
lib/sti_deploy/deploy.rb,
lib/sti_deploy/version.rb,
lib/sti_deploy/messages.rb,
lib/sti_deploy/git/merge.rb,
lib/sti_deploy/git/commit.rb,
lib/sti_deploy/deploy_type.rb,
lib/sti_deploy/configuration.rb,
lib/sti_deploy/version/hotfix.rb,
lib/sti_deploy/version/release.rb,
lib/sti_deploy/version/pre_release.rb,
lib/sti_deploy/version/version_bumper.rb,
lib/sti_deploy/version/release_candidate.rb,
lib/generators/sti_deploy/install_generator.rb

Overview

Program exit codes:

0: Program exited successfully 1: Error: A valid version number within the version file was not found 2: Error: Version file was not found 3: Error: Program was interrupted (CTRL+C) 4: Error: There was an error during the Git commit or merge process

Defined Under Namespace

Classes: Configuration, Deploy, DeployType, Git, InstallGenerator, Messages, Version

Class Method Summary collapse

Class Method Details

.begin_sti_deployObject



28
29
30
31
32
33
34
35
36
37
# File 'lib/sti_deploy.rb', line 28

def begin_sti_deploy
  Messages.load_messages
  deploy = Deploy.new
  deploy.update_version!
  deploy.commit_merge_and_tag!
  Messages.puts 'system.finished', color: :green
rescue Interrupt
  Messages.puts 'system.interrupted', color: :red
  exit(3)
end