Class: Deckr::CLI
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/deckr/cli.rb', line 8 def self.source_root File.("../templates", __FILE__) end |
Instance Method Details
#new(dest) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/deckr/cli.rb', line 13 def new(dest) self.destination_root = File.(dest, destination_root) empty_directory "." template "Gemfile" copy_file "config.ru" directory "deck" directory "views" end |