diff options
author | elijah <elijah@riseup.net> | 2016-06-27 14:09:11 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-06-27 16:58:04 -0700 |
commit | e8de57c6309daeb5e25e1b0973adb8214255077f (patch) | |
tree | 101edba8252037bb5fc2ebbe197ec734a132495c /lib/leap_cli/remote/puppet_plugin.rb | |
parent | e46c4c64128621c2e84233e27b63040c027be88f (diff) |
remove capistrano, switch to sshkit
Diffstat (limited to 'lib/leap_cli/remote/puppet_plugin.rb')
-rw-r--r-- | lib/leap_cli/remote/puppet_plugin.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/leap_cli/remote/puppet_plugin.rb b/lib/leap_cli/remote/puppet_plugin.rb deleted file mode 100644 index 5a6e908..0000000 --- a/lib/leap_cli/remote/puppet_plugin.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -# these methods are made available in capistrano tasks as 'puppet.method_name' -# (see RemoteCommand::new_capistrano) -# - -module LeapCli; module Remote; module PuppetPlugin - - def apply(options) - run "#{Leap::Platform.leap_dir}/bin/puppet_command set_hostname apply #{flagize(options)}" - end - - private - - def flagize(hsh) - hsh.inject([]) {|str, item| - if item[1] === false - str - elsif item[1] === true - str << "--" + item[0].to_s - else - str << "--" + item[0].to_s + " " + item[1].inspect - end - }.join(' ') - end - -end; end; end |