Module: Isomorfeus::Installer::TestAppFiles

Extended by:
DSL
Defined in:
lib/isomorfeus/installer/test_app_files.rb

Class Method Summary collapse

Methods included from DSL

config_path, copy_file, create_common_framework_directories, create_directory, create_file_from_template, install_basic_components, install_basic_policy, install_rake_file, install_spec_files

Class Method Details

.copy_test_app_filesObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/isomorfeus/installer/test_app_files.rb', line 11

def copy_test_app_files
  Dir.glob("#{Isomorfeus::Installer.source_dir}/**/*").each do |file|
    if File.file?(file)
      target_file = file[(Isomorfeus::Installer.source_dir.size+1)..-1]
      target_dir = File.dirname(target_file)
      Dir.mkdir(target_dir) unless Dir.exist?(target_dir)
      copy_file(file, target_file)
    end
  end
end

.executeObject



7
8
9
# File 'lib/isomorfeus/installer/test_app_files.rb', line 7

def execute
  copy_test_app_files if Isomorfeus::Installer.source_dir
end