lib/drone_chef/chef_server.rb
#
# Upload any roles, environments and data_bags
#
Upload any roles, environments and data_bags
Upload any roles environments and data_bags
def knife_upload
      puts 'Uploading roles, environments and data bags'
      command = ['knife upload']
      command << '.'
      command << "-c #{@config.knife_rb}"
      Dir.chdir(@config.workspace)
      puts `#{command.join(' ')}`
      fail 'knife upload failed' unless process_last_status.success?
    end
def knife_upload puts 'Uploading roles, environments and data bags' command = [ 'knife upload' ] command << '.' command << "-c #{@config.knife_rb}" Dir . chdir ( @config . workspace ) puts ` #{ command . join ( ' ' ) } ` fail 'knife upload failed' unless process_last_status . success? end
Upload any roles, environments and data_bags
Upload any roles environments and data_bags