Class: Ebookie::Cli

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

Instance Method Summary collapse

Instance Method Details

#install(directory) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/ebookie/cli.rb', line 10

def install(directory)
  exec_dir = Pathname.new(Dir.pwd)
  templates_dir = Pathname.new(File.expand_path('../templates', __FILE__))

  Ebookie::Cli.source_root templates_dir

  directory templates_dir, exec_dir.join(directory)
end