Class: StiDeploy::Deploy
- Inherits:
-
Object
- Object
- StiDeploy::Deploy
- Defined in:
- lib/sti_deploy/deploy.rb
Instance Attribute Summary collapse
-
#git_user ⇒ Object
readonly
Returns the value of attribute git_user.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #commit_merge_and_tag! ⇒ Object
-
#initialize ⇒ Deploy
constructor
A new instance of Deploy.
- #update_version! ⇒ Object
Constructor Details
#initialize ⇒ Deploy
7 8 9 10 |
# File 'lib/sti_deploy/deploy.rb', line 7 def initialize @version = Version.load_version @git_user = Configuration.git_username end |
Instance Attribute Details
#git_user ⇒ Object (readonly)
Returns the value of attribute git_user.
5 6 7 |
# File 'lib/sti_deploy/deploy.rb', line 5 def git_user @git_user end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/sti_deploy/deploy.rb', line 5 def end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/sti_deploy/deploy.rb', line 5 def type @type end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/sti_deploy/deploy.rb', line 5 def version @version end |
Instance Method Details
#commit_merge_and_tag! ⇒ Object
17 18 19 20 21 |
# File 'lib/sti_deploy/deploy.rb', line 17 def commit_merge_and_tag! git_commit! git_merge! unless same_origin_target_branches? git_tag! end |
#update_version! ⇒ Object
12 13 14 15 |
# File 'lib/sti_deploy/deploy.rb', line 12 def update_version! version.bump(read_type) version.update_file! end |