oneops-admin/lib/shared/test/integration/spec_utils.rb
def prepare_dirs
      require 'fileutils'
      recipe = File.join(@data_dir, '/test/integration/test_recipe.rb')

      FileUtils.chmod(755, exec_order)
      FileUtils.chown_R('vagrant', 'vagrant', '/home/oneops')
      FileUtils.mkdir_p("/home/oneops/#{@circuit}/components/cookbooks")
      FileUtils.mkdir_p('/home/oneops/shared/cookbooks/test/recipes')
      FileUtils.cp_r(recipe, '/home/oneops/shared/cookbooks/test/recipes/')
    end
# Mimic rsync-ing circuits from an inductor to VM
# Sets correct permissions
# Creates circuit folders and copies necessary files from data dir
Mimic rsync-ing circuits from an inductor to VM
Sets correct permissions
Creates circuit folders and copies necessary files from data dir
Mimic rsync - ing circuits from an inductor to VM Sets correct permissions Creates circuit folders and copies necessary files from data dir
def prepare_dirs
      require 'fileutils'
      recipe = File.join(@data_dir, '/test/integration/test_recipe.rb')
      FileUtils.chmod(755, exec_order)
      FileUtils.chown_R('vagrant', 'vagrant', '/home/oneops')
      FileUtils.mkdir_p("/home/oneops/#{@circuit}/components/cookbooks")
      FileUtils.mkdir_p('/home/oneops/shared/cookbooks/test/recipes')
      FileUtils.cp_r(recipe, '/home/oneops/shared/cookbooks/test/recipes/')
    end
def prepare_dirs require 'fileutils' recipe = File . join ( @data_dir , '/test/integration/test_recipe.rb' ) FileUtils . chmod ( 755 , exec_order ) FileUtils . chown_R ( 'vagrant' , 'vagrant' , '/home/oneops' ) FileUtils . mkdir_p ( "/home/oneops/#{@circuit}/components/cookbooks" ) FileUtils . mkdir_p ( '/home/oneops/shared/cookbooks/test/recipes' ) FileUtils . cp_r ( recipe , '/home/oneops/shared/cookbooks/test/recipes/' ) end
Mimic rsync-ing circuits from an inductor to VM
Sets correct permissions
Creates circuit folders and copies necessary files from data dir
Mimic rsync - ing circuits from an inductor to VM Sets correct permissions Creates circuit folders and copies necessary files from data dir