lib/drone_chef/chef_server.rb
def berks_upload
      puts 'Running berks upload'
      command = ['berks upload']
      command << "#{cookbook.name}" unless recursive
      command << "-b #{@config.workspace}/Berksfile"
      command << '--no-freeze' unless freeze
      puts `#{command.join(' ')}`
      fail 'Failed to upload cookbook' unless process_last_status.success?
    end
#
# Command to upload cookbook(s) with Berkshelf
#
Command to upload cookbook(s) with Berkshelf
Command to upload cookbook ( s ) with Berkshelf
def berks_upload
      puts 'Running berks upload'
      command = ['berks upload']
      command << "#{cookbook.name}" unless recursive
      command << "-b #{@config.workspace}/Berksfile"
      command << '--no-freeze' unless freeze
      puts `#{command.join(' ')}`
      fail 'Failed to upload cookbook' unless process_last_status.success?
    end
def berks_upload puts 'Running berks upload' command = [ 'berks upload' ] command << "#{cookbook.name}" unless recursive command << "-b #{@config.workspace}/Berksfile" command << '--no-freeze' unless freeze puts ` #{ command . join ( ' ' ) } ` fail 'Failed to upload cookbook' unless process_last_status . success? end
Command to upload cookbook(s) with Berkshelf
Command to upload cookbook ( s ) with Berkshelf