lib/bones/main.rb
# Unfreeze the project skeleton. The default Mr Bones skeleton will be
# used insetad. This method will archive the current frozen skeleton if
# one exists.
#
Unfreeze the project skeleton. The default Mr Bones skeleton will be
used insetad. This method will archive the current frozen skeleton if
one exists.
Unfreeze the project skeleton . The default Mr Bones skeleton will be used insetad . This method will archive the current frozen skeleton if one exists .
def unfreeze
    data_dir = File.join(mrbones_dir, 'data')
    archive_dir = File.join(mrbones_dir, 'archive')
    if test(?d, data_dir)
      STDOUT.puts "archiving #{data_dir}" if verbose
      FileUtils.rm_rf(archive_dir)
      FileUtils.mkdir(archive_dir)
      FileUtils.cp_r(File.join(data_dir, '.'), archive_dir)
      FileUtils.rm_rf(data_dir)
      STDOUT.puts "project skeleton has been unfrozen"
      STDOUT.puts "(default Mr Bones #{::Bones::VERSION} sekeleton will be used)"
    else
      STDOUT.puts "project skeleton is not frozen (no action taken)"
    end
    FileUtils.rm_f frozen_version_file
  end
def unfreeze data_dir = File . join ( mrbones_dir , 'data' ) archive_dir = File . join ( mrbones_dir , 'archive' ) if test ( ?d , data_dir ) STDOUT . puts "archiving #{data_dir}" if verbose FileUtils . rm_rf ( archive_dir ) FileUtils . mkdir ( archive_dir ) FileUtils . cp_r ( File . join ( data_dir , '.' ) , archive_dir ) FileUtils . rm_rf ( data_dir ) STDOUT . puts "project skeleton has been unfrozen" STDOUT . puts "(default Mr Bones #{::Bones::VERSION} sekeleton will be used)" else STDOUT . puts "project skeleton is not frozen (no action taken)" end FileUtils . rm_f frozen_version_file end
Unfreeze the project skeleton.
Unfreeze the project skeleton .