Class: LeeroyJenkins::JobBackupper
- Inherits:
-
Object
- Object
- LeeroyJenkins::JobBackupper
- Defined in:
- lib/leeroy_jenkins/job_backupper.rb
Instance Attribute Summary collapse
-
#backup_dir ⇒ Object
readonly
Returns the value of attribute backup_dir.
-
#jenkins_client ⇒ Object
readonly
Returns the value of attribute jenkins_client.
-
#job_names_to_backup ⇒ Object
readonly
Returns the value of attribute job_names_to_backup.
-
#threads ⇒ Object
readonly
Returns the value of attribute threads.
Instance Method Summary collapse
- #backup(dry = true) ⇒ Object
-
#initialize(job_names_to_backup, jenkins_client, backup_dir, threads) ⇒ JobBackupper
constructor
A new instance of JobBackupper.
Constructor Details
#initialize(job_names_to_backup, jenkins_client, backup_dir, threads) ⇒ JobBackupper
Returns a new instance of JobBackupper.
5 6 7 8 9 10 |
# File 'lib/leeroy_jenkins/job_backupper.rb', line 5 def initialize(job_names_to_backup, jenkins_client, backup_dir, threads) @job_names_to_backup = job_names_to_backup @jenkins_client = jenkins_client @backup_dir = backup_dir @threads = threads end |
Instance Attribute Details
#backup_dir ⇒ Object (readonly)
Returns the value of attribute backup_dir.
3 4 5 |
# File 'lib/leeroy_jenkins/job_backupper.rb', line 3 def backup_dir @backup_dir end |
#jenkins_client ⇒ Object (readonly)
Returns the value of attribute jenkins_client.
3 4 5 |
# File 'lib/leeroy_jenkins/job_backupper.rb', line 3 def jenkins_client @jenkins_client end |
#job_names_to_backup ⇒ Object (readonly)
Returns the value of attribute job_names_to_backup.
3 4 5 |
# File 'lib/leeroy_jenkins/job_backupper.rb', line 3 def job_names_to_backup @job_names_to_backup end |
#threads ⇒ Object (readonly)
Returns the value of attribute threads.
3 4 5 |
# File 'lib/leeroy_jenkins/job_backupper.rb', line 3 def threads @threads end |