lib/itamae-mitsurin/runner.rb in itamae-mitsurin-0.24 vs lib/itamae-mitsurin/runner.rb in itamae-mitsurin-0.26

- old
+ new

@@ -10,10 +10,12 @@ backend = Backend.create(backend_type, options) runner = self.new(backend, options) runner.load_recipes(recipe_files) runner.run + + runner end end attr_reader :backend attr_reader :options @@ -29,10 +31,11 @@ prepare_handler @node = create_node @tmpdir = "/tmp/itamae_tmp" @children = RecipeChildren.new + @diff = false @backend.run_command(["mkdir", "-p", @tmpdir]) @backend.run_command(["chmod", "777", @tmpdir]) end @@ -76,9 +79,17 @@ def save_profile(path) open(path, 'w', 0600) do |f| f.write(@backend.executed_commands.to_json) end + end + + def diff? + @diff + end + + def diff_found! + @diff = true end private def create_node hash = {}