Module: InfraTestingHelpers::Helper

Defined in:
lib/infra_testing_helpers/helper.rb

Instance Method Summary collapse

Instance Method Details

#apply_all_manifestsObject



18
19
20
# File 'lib/infra_testing_helpers/helper.rb', line 18

def apply_all_manifests
  box.apply(global_site)
end

#apply_manifest(manifest_code) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/infra_testing_helpers/helper.rb', line 7

def apply_manifest(manifest_code)
  if box.applied?
    local_site = InfraTestingHelpers::Site.new(InfraTestingHelpers.site_pp, InfraTestingHelpers.module_path, InfraTestingHelpers.project_root, InfraTestingHelpers.vagrant_shared_folder)
    local_site.add_manifest(manifest_code)
    box.apply(local_site)
  else
    global_site.add_manifest(manifest_code)
  end

end