class Umwelt::CLI::Commands::Example

Public Instance Methods

call(**options) click to toggle source
# File lib/umwelt/cli/commands/example.rb, line 12
def call(**options)
  FileUtils.cp_r(
    examples_dir,
    target_dir(options.fetch(:target)),
    verbose: true
  )
end
examples_dir() click to toggle source
# File lib/umwelt/cli/commands/example.rb, line 20
def examples_dir
  Pathname.new(__dir__) / '../../../../spec/examples/.'
end
target_dir(target) click to toggle source
# File lib/umwelt/cli/commands/example.rb, line 24
def target_dir(target)
  Pathname.pwd / target
end