Sha256: 53963aba3c60479e94918c8371e20667db19bc70405b557e5b30df86d18f8ca1
Contents?: true
Size: 602 Bytes
Versions: 1
Compression:
Stored size: 602 Bytes
Contents
require 'wilbur' require 'thor' require 'pathname' module Wilbur class CLI < Thor include Thor::Actions class << self def source_root Wilbur.root.join('catalog_skeleton') end end desc "init", "Initialize a new Wilbur catalog in the current directory" def init Pathname.glob(self.class.source_root.join('**/*')) .select { |path| path.file? } .map { |path| path.relative_path_from self.class.source_root } .delete_if { |path| path == Pathname.new('README.md') }.each do |path| template path end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wilbur-0.0.2 | lib/wilbur/cli.rb |