lib/chake/config_manager/itamae.rb in chake-0.80 vs lib/chake/config_manager/itamae.rb in chake-0.81
- old
+ new
@@ -11,14 +11,10 @@
def apply(config)
run_itamae(config)
end
- def needs_bootstrap?
- false
- end
-
def needs_upload?
false
end
def self.accept?(node)
@@ -37,9 +33,12 @@
cmd << 'local'
else
raise NotImplementedError, "Connection type #{node.connection.class} not supported for itamee"
end
cmd << "--node-json=#{json_config}"
+ if node.silent
+ cmd << '--log-level=warn'
+ end
cmd += recipes
node.log("$ #{cmd.join(' ')}")
io = IO.popen(cmd, 'r', err: %i[child out])
node.connection.read_output(io)
end