Skip to content

Commit

Permalink
Mark Terraform.write_dsl_file as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dmac committed Oct 18, 2012
1 parent 70129ec commit 1d32dd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/terraform.rb
Expand Up @@ -2,8 +2,11 @@
require "fileutils"

module Terraform
# DEPRECATED
# Replaced by `write_terraform_files`. Remove in next major version release.
# Writes the terraform_dsl.rb to the given file or directory.
def self.write_dsl_file(path)
puts "WARNING: `Terraform.write_dsl_file` is deprecated. Instead use `Terraform.write_terraform_files`."
path = File.join(path, "terraform_dsl.rb") if File.directory?(path)
FileUtils.cp(File.expand_path(File.join(File.dirname(__FILE__), "terraform/dsl.rb")), path)
end
Expand Down

0 comments on commit 1d32dd0

Please sign in to comment.