Release/Update folders
This commit is contained in:
parent
5bc5638934
commit
06d229a4b0
|
@ -23,6 +23,7 @@ class Repository < ActiveRecord::Base
|
||||||
raise "Directory #{path} already exists" if exists
|
raise "Directory #{path} already exists" if exists
|
||||||
if new_record?
|
if new_record?
|
||||||
FileUtils.mkdir_p(path)
|
FileUtils.mkdir_p(path)
|
||||||
|
%w(release updates).each { |subrep| FileUtils.mkdir_p(path + subrep) }
|
||||||
elsif unixname_changed?
|
elsif unixname_changed?
|
||||||
FileUtils.mv(build_path(unixname_was), buildpath(unixname))
|
FileUtils.mv(build_path(unixname_was), buildpath(unixname))
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
= t('layout.projects.git_repo_location')
|
= t('layout.projects.git_repo_location')
|
||||||
= @project.git_repo_path
|
= @project.git_repo_path
|
||||||
|
|
||||||
= link_to t('layout.projects.back_to_the_list'), platform_repository_path(@repository, @platform)
|
= link_to t('layout.projects.back_to_the_list'), platform_repository_path(@platform, @repository)
|
||||||
%br/
|
%br/
|
||||||
= link_to "git-repo", platform_repository_project_repo_path(@platform, @repository, @project)
|
= link_to "git-repo", platform_repository_project_repo_path(@platform, @repository, @project)
|
||||||
|
|
||||||
|
%h2 Release
|
||||||
|
%h2 Updates
|
||||||
|
|
Loading…
Reference in New Issue