Sha256: 605aad4689391583bef72a83ff45fcf9d8c792b3a8cc646d11e0439f360849b1
Contents?: true
Size: 814 Bytes
Versions: 1
Compression:
Stored size: 814 Bytes
Contents
#!/usr/bin/env ruby require File.expand_path(File.dirname(__FILE__) + "/../lib/stasis") gem "slop", "3.3.2" require 'slop' slop = Slop.parse :help => true, :optional_arguments => true do on :d, :development, "Development mode", :as => Integer on :o, :only, "Only generate specific files (comma-separated)", :as => Array on :p, :public, "Public directory path" end exit if slop.help? options = slop.to_hash if slop.development? require 'stasis/dev_mode' Stasis::DevMode.new(Dir.pwd, options) elsif slop.only? && slop.public? Stasis.new(Dir.pwd, slop[:public], options).render(*slop[:only]) elsif slop.only? Stasis.new(Dir.pwd, options).render(*slop[:only]) elsif slop.public? Stasis.new(Dir.pwd, slop[:public], options).render(*(slop[:only].to_a)) else Stasis.new(Dir.pwd, options).render end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stasis-0.2.0.pre | bin/stasis |