vendor/gems/bones-2.4.2/lib/bones/app/file_manager.rb
def _cp( file )
    dir = File.dirname(file)
    dir = (dir == '.' ? destination : File.join(destination, dir))
    dst = File.join(dir,  File.basename(file))
    src = File.join(source, file)

    @out.puts(test(?e, dst) ? "updating #{dst}" : "creating #{dst}") if verbose?
    FileUtils.mkdir_p(dir)
    FileUtils.cp src, dst

    FileUtils.chmod(File.stat(src).mode, dst)
  end
# Copy a file from the Bones prototype project location to the user
# specified project location. A message will be displayed to the screen
# indicating that the file is being created.
#
Copy a file from the Bones prototype project location to the user
specified project location. A message will be displayed to the screen
indicating that the file is being created.
Copy a file from the Bones prototype project location to the user specified project location . A message will be displayed to the screen indicating that the file is being created .
def _cp( file )
    dir = File.dirname(file)
    dir = (dir == '.' ? destination : File.join(destination, dir))
    dst = File.join(dir,  File.basename(file))
    src = File.join(source, file)
    @out.puts(test(?e, dst) ? "updating #{dst}" : "creating #{dst}") if verbose?
    FileUtils.mkdir_p(dir)
    FileUtils.cp src, dst
    FileUtils.chmod(File.stat(src).mode, dst)
  end
def _cp ( file ) dir = File . dirname ( file ) dir = ( dir == '.' ? destination : File . join ( destination , dir ) ) dst = File . join ( dir , File . basename ( file ) ) src = File . join ( source , file ) @out . puts ( test ( ?e , dst ) ? "updating #{dst}" : "creating #{dst}" ) if verbose? FileUtils . mkdir_p ( dir ) FileUtils . cp src , dst FileUtils . chmod ( File . stat ( src ) . mode , dst ) end
Copy a file from the Bones prototype project location to the user
specified project location.
Copy a file from the Bones prototype project location to the user specified project location .
file