bin/soks-create-wiki.rb in Soks-0.0.5 vs bin/soks-create-wiki.rb in Soks-0.0.6

- old
+ new

@@ -93,11 +93,11 @@ url = prompt.ask("What url will this wiki be accessed from (include the port)?",url) port = prompt.ask("What port will this wiki be accessed from?", port ) end puts "Creating wiki at #{destination} from #{source}" copy_template( source, destination ) - fill_out_script_template( destination, 'start.rb', { :root_directory => File.expand_path( destination ), :soks_libraries => soks_library, :url => url, :port => port } ) + fill_out_script_template( destination, 'start.rb', { :root_directory => File.expand_path( destination ), :soks_libraries => soks_library, :url => url, :port => port, :version => version_number_from_wiki( destination ) } ) end if upgrade wiki_version = version_number_from_wiki( destination ) || prompt.ask('Cant find a version number, please enter what version this soks is','0.0.2') soks_version = version_number_from_wiki( template_file_named( source ) ) @@ -164,10 +164,10 @@ if interactive old_url = prompt.ask("What url will this wiki be accessed from (include the port)?",old_url) old_port = prompt.ask("What port will this wiki be accessed from?",old_port ) end - fill_out_script_template( destination, 'start.rb', { :root_directory => File.expand_path( destination ), :soks_libraries => soks_library, :url => old_url, :port => old_port } ) + fill_out_script_template( destination, 'start.rb', { :root_directory => File.expand_path( destination ), :soks_libraries => soks_library, :url => old_url, :port => old_port, :version => version_number_from_wiki( destination ) } ) puts "\nI'm very sorry, but if you modified the authenticators, or added any AutomaticSummaries or AutomaticCalendars or suchlike, then you will need to copy them across manually from #{old_wiki}/start.rb to #{destination}/start.rb.\n Note that their api may have changed, so please look at the examples in #{destination}/start.rb\n\nOnce you have done that, run ruby #{destination}/start.rb to start." exit end end \ No newline at end of file