Class: Deckr::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/deckr/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



8
9
10
# File 'lib/deckr/cli.rb', line 8

def self.source_root
  File.expand_path("../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.expand_path(dest, destination_root)
  empty_directory "."
  template "Gemfile"
  copy_file "config.ru"
  directory "deck"
  directory "views"
end