class Umwelt::CLI::Commands::Clone
Public Instance Methods
call(user_project:, **options)
click to toggle source
# 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
Private Instance Methods
report(result)
click to toggle source
# File lib/umwelt/cli/commands/clone.rb, line 30 def report(result) if result.success? result.written_paths.each_pair do |key, value| puts "#{key} => (#{value})" end puts "#{result.written_paths.keys.count} files written succesfully" else result.errors.each { |e| puts "Error: #{e}" } end end