lib/subspace/commands/bootstrap.rb in subspace-2.1.2 vs lib/subspace/commands/bootstrap.rb in subspace-2.2.0

- old
+ new

@@ -39,28 +39,16 @@ "-a", "test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)", "--become", "-vvvv" ] - cmd = add_pass_through_params cmd + cmd = cmd | pass_through_params bootstrap_command cmd end def bootstrap_command(cmd) if @ask_pass cmd.push("--ask-pass") end ansible_command *cmd - end - - def add_pass_through_params(cmd) - PASS_THROUGH_PARAMS.each do |param_name| - x = param_name.split('-')[1..-1].map(&:upcase).join('_') - hash_key = (param_name.gsub('-', '_') + (x == '' ? '' : "_#{x}")).to_sym - value = @options.__hash__[hash_key] - if value - cmd += ["--#{param_name}", value] - end - end - cmd end end