Class: Ansible::Ruby::Modules::Deploy_helper

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/web_infrastructure/deploy_helper.rb

Overview

The Deploy Helper manages some of the steps common in deploying software. It creates a folder structure, manages a symlink for the current release and cleans up old releases. Running it with the C(state=query) or C(state=present) will return the C(deploy_helper) fact. C(project_path), whatever you set in the path parameter, C(current_path), the path to the symlink that points to the active release, C(releases_path), the path to the folder to keep releases in, C(shared_path), the path to the folder to keep shared resources in, C(unfinished_filename), the file to check for to recognize unfinished builds, C(previous_release), the release the ‘current’ symlink is pointing to, C(previous_release_path), the full path to the ‘current’ symlink target, C(new_release), either the ‘release’ parameter or a generated timestamp, C(new_release_path), the path to the new release folder (not created by the module).

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#clean:yes, ...



41
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/deploy_helper.rb', line 41

attribute :clean

#current_pathString?



33
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/deploy_helper.rb', line 33

attribute :current_path

#keep_releasesInteger?



45
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/deploy_helper.rb', line 45

attribute :keep_releases

#pathString



13
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/deploy_helper.rb', line 13

attribute :path

#releaseString?



21
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/deploy_helper.rb', line 21

attribute :release

#releases_pathString?



25
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/deploy_helper.rb', line 25

attribute :releases_path

#shared_pathString?



29
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/deploy_helper.rb', line 29

attribute :shared_path

#state:present, ...



17
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/deploy_helper.rb', line 17

attribute :state

#unfinished_filenameString?



37
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/deploy_helper.rb', line 37

attribute :unfinished_filename