Class: UcbDeployer::ConfigTasks::Jira::ConfigJiraConfigProperties
- Inherits:
-
Object
- Object
- UcbDeployer::ConfigTasks::Jira::ConfigJiraConfigProperties
- Defined in:
- lib/ucb_deployer/config_tasks/jira/config_jira_config_properties.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(config) ⇒ ConfigJiraConfigProperties
constructor
A new instance of ConfigJiraConfigProperties.
- #jira_config_properties_path ⇒ Object
- #projectkey_config ⇒ Object
Constructor Details
#initialize(config) ⇒ ConfigJiraConfigProperties
Returns a new instance of ConfigJiraConfigProperties.
5 6 7 |
# File 'lib/ucb_deployer/config_tasks/jira/config_jira_config_properties.rb', line 5 def initialize(config) @config = config end |
Instance Method Details
#execute ⇒ Object
9 10 11 12 13 |
# File 'lib/ucb_deployer/config_tasks/jira/config_jira_config_properties.rb', line 9 def execute() File.open(self.jira_config_properties_path(), "w") do |fd| fd.puts(self.projectkey_config()) end end |
#jira_config_properties_path ⇒ Object
20 21 22 |
# File 'lib/ucb_deployer/config_tasks/jira/config_jira_config_properties.rb', line 20 def jira_config_properties_path() "#{@config.data_dir()}/jira-config.properties" end |
#projectkey_config ⇒ Object
16 17 18 |
# File 'lib/ucb_deployer/config_tasks/jira/config_jira_config_properties.rb', line 16 def projectkey_config() "jira.projectkey.pattern = ([A-Z][A-Z0-9]+)" end |