Sha256: a4b2a467d3a98fe84c8cecf4930738bde9055af365ab9caac04040757c3abb27

Contents?: true

Size: 311 Bytes

Versions: 2

Compression:

Stored size: 311 Bytes

Contents

require 'fileutils'

module RubyTerraform
  module Commands
    class Clean
      def initialize(directory: nil)
        @directory = directory ? directory : '.terraform'
      end

      def execute(opts = {})
        FileUtils.rm_r(opts[:directory] || @directory, :secure => true)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-terraform-0.34.0 lib/ruby_terraform/commands/clean.rb
ruby-terraform-0.33.0.pre.pre.1 lib/ruby_terraform/commands/clean.rb