weblicate 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -22,11 +22,11 @@ generates the following output:
22
22
 
23
23
  files-usa.weblicate.info # All files and assets for the page
24
24
  hosts-usa.weblicate.info # Entries that can be added to your local hosts file
25
+ vhosts-usa.weblicate.info # Apache vhosts entries for all domains
25
26
 
26
- You also get these if you want the outside world to be able to see your weblicant:
27
+ You also get these in case you want the outside world to be able to see your weblicant:
27
28
 
28
29
  dns-usa.weblicate.info # A script to create DNS entries (on Slicehost.com)
29
- vhosts-usa.weblicate.info # Apache vhosts entries for all domains
30
30
 
31
31
  == Copyright
32
32
 
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "weblicate"
8
- gem.version = '0.0.2'
8
+ gem.version = '0.0.3'
9
9
  gem.summary = %Q{Replicate a website}
10
10
  gem.description = %Q{Replicate a website based on a HAR file}
11
11
  gem.email = "mike@bailey.net.au"
data/bin/weblicate CHANGED
@@ -11,7 +11,9 @@ File.open('hosts-' + a.dest_domain, 'w') { |file| file.write(a.hosts_file) }
11
11
  File.open('vhosts-' + a.dest_domain, 'w') { |file| file.write(a.vhosts) }
12
12
  File.open('dns-' + a.dest_domain, 'w') { |file| file.write(a.dns) }
13
13
 
14
+ puts
14
15
  puts "Now run these commands..."
15
16
  puts "rsync -avz files-#{a.dest_domain}/ #{a.dest_domain}:/var/www/weblicate/"
16
- puts "sh dns-#{a.dest_domain}"
17
17
  puts "scp vhosts-#{a.dest_domain} #{a.dest_domain}:/etc/apache2/apps/"
18
+ puts "# Now reload apache"
19
+ puts "sh dns-#{a.dest_domain} # (optional) Create domains on Slicehost"
data/lib/weblicate/har.rb CHANGED
@@ -11,7 +11,7 @@ class Har
11
11
  attr_accessor :dest_domain
12
12
 
13
13
  def initialize(harfile, options={})
14
- @dest_domain = options[:dest_domain] || 'local'
14
+ @dest_domain = options[:dest_domain] || 'localhost'
15
15
 
16
16
  if File.exists? harfile
17
17
  contents = File.read(harfile)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weblicate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike Bailey