Class: Umwelt::CLI::Commands::Clone

Inherits:
Hanami::CLI::Command
  • Object
show all
Defined in:
lib/umwelt/cli/commands/clone.rb

Instance Method Summary collapse

Instance Method Details

#call(user_project:, **options) ⇒ Object



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

def call(user_project:, **options)
  puts "Cloning project: <#{user_project}>"
  puts options.inspect
  puts options.fetch(:target)

  report(
    Umwelt::Command::Clone
           .new(path: options.fetch(:target))
           .call(user_project: user_project)
  )
end