ktec-subtrac 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 21
4
+ :patch: 22
data/lib/subtrac.rb CHANGED
@@ -211,12 +211,6 @@ module Subtrac
211
211
  @server_hostname = ask("What url will your new server use? ") if change_server_hostname
212
212
 
213
213
  create_environment_directories(confirm_clean)
214
- install_common_files()
215
- install_default_theme()
216
- configure_admin_user()
217
- # TODO: Need to check for default client/project before creating virtual host
218
- # otherwise we need remove the rewrite rule
219
- create_virtual_host()
220
214
  confirm_default_client = agree("Do you want to create a default client project? [Y/n]")
221
215
  # create default project and client
222
216
  if confirm_default_client
@@ -226,6 +220,12 @@ module Subtrac
226
220
  @default_project = ask("What would you like to call your new project? ") if change_project
227
221
  create_project(@default_project,@default_client)
228
222
  end
223
+ install_common_files()
224
+ install_default_theme()
225
+ configure_admin_user()
226
+ # TODO: Need to check for default client/project before creating virtual host
227
+ # otherwise we need remove the rewrite rule
228
+ create_virtual_host()
229
229
  save_config()
230
230
  end
231
231
 
@@ -381,7 +381,7 @@ module Subtrac
381
381
  project_svn_dir = File.join(svn_dir,client_name,project_name)
382
382
  project_trac_dir = File.join(trac_dir,client_name,project_name)
383
383
 
384
- # TODO: Need to change this to use a 'groups' yml file
384
+ # TODO: Need to handle this exception...
385
385
  if (File.directory? project_svn_dir) then
386
386
  raise StandardError, "A project called #{project} already exists in the #{client} repository. Would you like to replace it?"
387
387
  end
@@ -441,6 +441,9 @@ module Subtrac
441
441
  FileUtils.rm(temp_file)
442
442
  end
443
443
  end
444
+
445
+ # chown the whole directory
446
+ FileUtils.chown_R('www-data', 'www-data', File.join(@install_dir,"*"), :verbose => true) if SUBTRAC_ENV != 'test'
444
447
 
445
448
  # run trac upgrade
446
449
  say("Upgrading the trac installation...")
@@ -5,7 +5,7 @@
5
5
  PythonOption TracEnvParentDir <%= trac_dir %>/<%= client_name %>
6
6
  PythonOption TracUriRoot /<%= client_name %>
7
7
  PythonOption TracEnvIndexTemplate <%= trac_dir %>/<%= client_name %>/.theme/index/index.html
8
- PythonOption PYTHON_EGG_CACHE /tmp
8
+ PythonOption PYTHON_EGG_CACHE <%= temp_dir %>
9
9
  </location>
10
10
  <location <%= @APP_CONFIG[:urls][:svn] %>/<%= client_name %>>
11
11
  DAV svn
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ktec-subtrac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Salisbury