Class: MuxTf::PlanFilenameGenerator
- Inherits:
-
Object
- Object
- MuxTf::PlanFilenameGenerator
- Defined in:
- lib/mux_tf/plan_filename_generator.rb
Class Method Summary collapse
Class Method Details
.for_path(path = Dir.getwd) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/mux_tf/plan_filename_generator.rb', line 5 def self.for_path(path = Dir.getwd) folder_name = File.basename(path) temp_dir = Dir.tmpdir hash = Digest::MD5.hexdigest(path) "#{temp_dir}/#{folder_name}-#{hash}.tfplan" end |