Class: Wilbur::CLI
- Inherits:
-
Thor
- Object
- Thor
- Wilbur::CLI
- Includes:
- Thor::Actions
- Defined in:
- lib/wilbur/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#init ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/wilbur/cli.rb', line 17 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 |