Class: UcbDeployer::ConfigTasks::Jira::ConfigJiraConfigProperties

Inherits:
Object
  • Object
show all
Defined in:
lib/ucb_deployer/config_tasks/jira/config_jira_config_properties.rb

Instance Method Summary collapse

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

#executeObject



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_pathObject



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_configObject



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