Sha256: 89ab20d348a4ad95f1ab01c1898703e37e18be3346e5d27b551bc43fb37caaae

Contents?: true

Size: 752 Bytes

Versions: 1

Compression:

Stored size: 752 Bytes

Contents

#!/usr/bin/env ruby -wKU

site_folder = File.expand_path(".")
puts "In #{site_folder}.:"
puts `webgen`


timestamp = Time.now.to_i
deploy_folder = "#{site_folder}/deploy/#{timestamp}/features"

 
`mkdir -p #{deploy_folder}`
if File.directory?(deploy_folder)
  puts "Local Deploy Folder: #{deploy_folder}"
else
  raise "Couldn't make deploy dir: #{deploy_folder}."
end

`cd #{site_folder}/out && cp -r * #{deploy_folder}`
puts Dir.entries(deploy_folder).join(" ")
if Dir.entries(deploy_folder).join(" ") =~ /\s*index.html\s*/
  puts "Output moved to #{deploy_folder}"
else
  raise "Couldn't copy output to #{deploy_folder}"
end

puts `cd #{deploy_folder} && cd .. && scp -r . mhennemeyer@rubyforge.org:/var/www/gforge-projects/features`

puts "Finished"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
features-0.2.0 website/deploy.rb