lib/specinfra/backend/dockerfile.rb in specinfra-2.0.0.beta47 vs lib/specinfra/backend/dockerfile.rb in specinfra-2.0.0.beta48
- old
+ new
@@ -1,10 +1,11 @@
+# -*- coding: utf-8 -*-
module Specinfra::Backend
class Dockerfile < Specinfra::Backend::Base
def initialize
@lines = []
ObjectSpace.define_finalizer(self) {
- File.write("Dockerfile", @lines.join("\n"))
+ puts @lines
}
end
def run_command(cmd, opts={})
@lines << "RUN #{cmd}"