Sha256: e8704743baa548b7b233eb3e98f2bc78a52ba8320f22af9e40a6dda2f63fb44c

Contents?: true

Size: 587 Bytes

Versions: 2

Compression:

Stored size: 587 Bytes

Contents

#!/usr/bin/env ruby
require 'fileutils'

binpath = "#{File.expand_path(File.dirname(__FILE__)).chomp}/../"
linkname = ARGV[0] || 'index'
powpath = "#{ENV['HOME']}/.pow/#{linkname}"
FileUtils.ln_s(binpath, powpath) unless File.exists?(powpath)
puts "Created #{powpath}"

## First snapshots generation
POW_PATH = "#{ENV['HOME']}/.pow"
@snaps = Dir[POW_PATH + "/*"].map { |symlink|
  link = symlink.rpartition("/").last
  unless link.eql?("default")
    system "webkit2png -D #{binpath}public/snaps/ -o #{link} -C http://#{link}.dev"
    puts "#{link.capitalize} snapshot generated"
  end
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pow-index-0.0.7 bin/pow-index
pow-index-0.0.6 bin/pow-index