Sha256: cda5513df6f501ad79a955e2f247f204ed4cab677db79c2420b868ae3a1b4bdb

Contents?: true

Size: 479 Bytes

Versions: 19

Compression:

Stored size: 479 Bytes

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../lib/staticmatic'

command = ARGV[0]
directory = ARGV[1]

if !command || !directory
  puts "Usage: #{$0} <build|setup|preview> <directory>"
  exit
end

configuration = StaticMatic::Configuration.new

config_file = "#{directory}/src/configuration.rb"

if File.exists?(config_file)
  config = File.read(config_file)
  eval(config)
end

staticmatic = StaticMatic::Base.new(directory, configuration)
staticmatic.run(command)

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
bdimcheff-staticmatic-0.10.1 bin/staticmatic
mattt-staticmatic-0.10.1 bin/staticmatic
staticmatic-0.10.8 bin/staticmatic
staticmatic-0.10.7 bin/staticmatic
staticmatic-0.10.6 bin/staticmatic
staticmatic-0.10.5 bin/staticmatic
staticmatic-0.10.4 bin/staticmatic
staticmatic-0.10.3 bin/staticmatic
staticmatic-0.10.2 bin/staticmatic
staticmatic-0.10.0 bin/staticmatic
staticmatic-0.10.1 bin/staticmatic
staticmatic-0.8.10 bin/staticmatic
staticmatic-0.9.1 bin/staticmatic
staticmatic-0.9.0 bin/staticmatic
staticmatic-0.8.8 bin/staticmatic
staticmatic-0.8.9 bin/staticmatic
staticmatic-0.9.5 bin/staticmatic
staticmatic-0.9.3 bin/staticmatic
staticmatic-0.9.4 bin/staticmatic