diff options
author | elijah <elijah@riseup.net> | 2016-02-12 15:10:16 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-02-12 15:10:16 -0800 |
commit | 553abaa13d0a5232f807951754f12da9ff3fa7a6 (patch) | |
tree | 15b48a10e66918d479c0ce356c9ca69d4407fa97 /lib/leap_cli/remote/puppet_plugin.rb | |
parent | 24704a7f28521aca9181430bcb9adfcd67182534 (diff) |
support for node_init script
Diffstat (limited to 'lib/leap_cli/remote/puppet_plugin.rb')
-rw-r--r-- | lib/leap_cli/remote/puppet_plugin.rb | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/lib/leap_cli/remote/puppet_plugin.rb b/lib/leap_cli/remote/puppet_plugin.rb index 77bb4a3..5a6e908 100644 --- a/lib/leap_cli/remote/puppet_plugin.rb +++ b/lib/leap_cli/remote/puppet_plugin.rb @@ -24,43 +24,3 @@ module LeapCli; module Remote; module PuppetPlugin end end; end; end - - - # def puppet(command = :noop) - # #puppet_cmd = "cd #{puppet_destination} && #{sudo_cmd} #{puppet_command} --modulepath=#{puppet_lib} #{puppet_parameters}" - # puppet_cmd = "cd #{puppet_destination} && #{sudo_cmd} #{puppet_command} #{puppet_parameters}" - # flag = command == :noop ? '--noop' : '' - - # writer = if puppet_stream_output - # SupplyDrop::Writer::Streaming.new(logger) - # else - # SupplyDrop::Writer::Batched.new(logger) - # end - - # writer = SupplyDrop::Writer::File.new(writer, puppet_write_to_file) unless puppet_write_to_file.nil? - - # begin - # exitcode = nil - # run "#{puppet_cmd} #{flag}; echo exitcode:$?" do |channel, stream, data| - # if data =~ /exitcode:(\d+)/ - # exitcode = $1 - # writer.collect_output(channel[:host], "Puppet #{command} complete (#{exitcode_description(exitcode)}).\n") - # else - # writer.collect_output(channel[:host], data) - # end - # end - # ensure - # writer.all_output_collected - # end - # end - - # def exitcode_description(code) - # case code - # when "0" then "no changes" - # when "2" then "changes made" - # when "4" then "failed" - # when "6" then "changes and failures" - # else code - # end - # end - |