Sha256: c1f0a06aa94cb386973f7a74761c3c90e61006a18ed9f264b8ceb0d273b44ea6

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

module RSpec
  module Terraform
    module Helpers
      module Actions
        module Clean
          def clean(parameters)
            return unless execution_mode == :isolated

            FileUtils.rm_rf(parameters[:configuration_directory])
            FileUtils.mkdir_p(parameters[:configuration_directory])
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-terraform-0.1.0.pre.47 lib/rspec/terraform/helpers/actions/clean.rb