Class: Zlide::CLI::Base
- Inherits:
-
Thor
- Object
- Thor
- Zlide::CLI::Base
- Includes:
- Thor::Actions
- Defined in:
- lib/zlide/cli/base.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/zlide/cli/base.rb', line 8 def self.source_root File.("../../templates", __FILE__) end |
Instance Method Details
#new(name) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/zlide/cli/base.rb', line 13 def new(name) empty_directory(name) self.destination_root = name ["slides", "public", "stylesheets", "config"].each do |subdirectory| empty_directory(subdirectory) end @name = name template "config/deck.yml.tt" template "README.md.tt" copy_file "stylesheets/deck-theme.css" copy_file "stylesheets/highlight-theme.css" copy_file "stylesheets/slides.css" end |