Class: Schreihals::Cli

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

Instance Method Summary collapse

Instance Method Details

#create(name) ⇒ Object



17
18
19
20
21
22
23
24
25
26
# File 'lib/schreihals/cli.rb', line 17

def create(name)
  @name = name
  self.destination_root = name
  directory 'new_blog', '.'

  in_root do
    run "bundle"   if options[:bundle]
    run "git init" if options[:git]
  end
end