Sha256: 8bb38d723916541bfa7df9d2a422c7b435e051aaa0050cf50eecd426f049aaf7

Contents?: true

Size: 575 Bytes

Versions: 2

Compression:

Stored size: 575 Bytes

Contents

require 'vagabond/uploader'

module Vagabond
  class Uploader
    class Knife < Uploader

      def upload(*args)
        prepare unless args.include?(:no_prepare)
        com = "knife cookbook upload#{options[:knife_opts]} --all"
        if(options[:cookbook_paths])
          com << " --cookbook-path #{Array(options[:cookbook_paths]).join(':')}"
        end
        debug(com)
        cmd = Mixlib::ShellOut.new(com,
          :live_stream => options[:debug],
          :cwd => store
        )
        cmd.run_command
        cmd.error!
      end
      
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagabond-0.2.4 lib/vagabond/uploader/knife.rb
vagabond-0.2.2 lib/vagabond/uploader/knife.rb