Sha256: c4dd3346d28318d658201a261b1f98e61d0b91e73fa6bdbfb8cb608507d5c63a
Contents?: true
Size: 613 Bytes
Versions: 1
Compression:
Stored size: 613 Bytes
Contents
require "thor" module Munge class CLI < Thor include Thor::Actions def self.source_root File.expand_path("../../../seeds", __FILE__) end desc "init PATH", "Create new site at PATH" def init(path) directory ".", path end desc "build", "Build in current directory" def build config_path = File.join(destination_root, "config.yml") rules_path = File.join(destination_root, "rules.rb") Munge::Runner.write(config_path, rules_path) end desc "version", "Print version" def version puts "munge #{Munge::VERSION}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
munge-0.2.0 | lib/munge/cli.rb |