Sha256: d606e9ed87f5592b6eb6e0229bf29bd265ad3b9f9e027317a0af2027ec80a007

Contents?: true

Size: 600 Bytes

Versions: 16

Compression:

Stored size: 600 Bytes

Contents

module RubyTerraform
  class Output
    def self.for(opts)
      name = opts[:name]
      backend_config = opts[:backend_config]

      source_directory = opts[:source_directory]
      work_directory = opts[:work_directory]

      configuration_directory = File.join(work_directory, source_directory)

      FileUtils.mkdir_p File.dirname(configuration_directory)
      FileUtils.cp_r source_directory, configuration_directory

      Dir.chdir(configuration_directory) do
        RubyTerraform.init(backend_config: backend_config)
        RubyTerraform.output(name: name)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby-terraform-0.65.0.pre.4 lib/ruby_terraform/output.rb
ruby-terraform-0.65.0.pre.3 lib/ruby_terraform/output.rb
ruby-terraform-0.65.0.pre.2 lib/ruby_terraform/output.rb
ruby-terraform-0.65.0.pre.1 lib/ruby_terraform/output.rb
ruby-terraform-0.64.0 lib/ruby_terraform/output.rb
ruby-terraform-0.63.0.pre.1 lib/ruby_terraform/output.rb
ruby-terraform-0.62.0 lib/ruby_terraform/output.rb
ruby-terraform-0.61.0.pre.1 lib/ruby_terraform/output.rb
ruby-terraform-0.60.0 lib/ruby_terraform/output.rb
ruby-terraform-0.59.0.pre.2 lib/ruby_terraform/output.rb
ruby-terraform-0.59.0.pre.1 lib/ruby_terraform/output.rb
ruby-terraform-0.58.0 lib/ruby_terraform/output.rb
ruby-terraform-0.57.0.pre.2 lib/ruby_terraform/output.rb
ruby-terraform-0.57.0.pre.1 lib/ruby_terraform/output.rb
ruby-terraform-0.56.0 lib/ruby_terraform/output.rb
ruby-terraform-0.55.0.pre.1 lib/ruby_terraform/output.rb