Class: Rodbot::CLI::Commands::New

Inherits:
Rodbot::CLI::Command show all
Defined in:
lib/rodbot/cli/commands/new.rb

Instance Method Summary collapse

Methods inherited from Rodbot::CLI::Command

#call

Instance Method Details

#rescued_call(path:) ⇒ Object



13
14
15
16
17
# File 'lib/rodbot/cli/commands/new.rb', line 13

def rescued_call(path:, **)
  Rodbot::Generator
    .new(Rodbot.env.gem.join('lib', 'templates', 'new'))
    .write(Pathname(path))
end