Module: RSpec::Terraform::Helpers::Actions::Remove

Included in:
Plan
Defined in:
lib/rspec/terraform/helpers/actions/remove.rb

Instance Method Summary collapse

Instance Method Details

#remove(parameters, file) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rspec/terraform/helpers/actions/remove.rb', line 10

def remove(parameters, file)
  configuration_directory = parameters[:configuration_directory]

  log_remove_starting(configuration_directory, file)

  FileUtils.rm_f(
    File.join(configuration_directory, file)
  )

  log_remove_complete
end