Class: Bkblz::Task::ListFiles
- Defined in:
- lib/bkblz/task/list_files.rb
Constant Summary
Constants included from ClassMethods
Instance Attribute Summary
Attributes inherited from BaseTask
Instance Method Summary collapse
Methods inherited from BaseTask
Methods included from ClassMethods
#check_one_of, #check_params, #check_required, #run, #task_param, #task_params
Methods included from TaskHelpers
Constructor Details
This class inherits a constructor from Bkblz::Task::BaseTask
Instance Method Details
#run_internal(session, params) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/bkblz/task/list_files.rb', line 10 def run_internal(session, params) bucket = find_bucket_by_name session, params[:bucket_name] if params[:all_versions] session.send Bkblz::V1::ListFileVersionsRequest.new bucket, params[:limit] else session.send Bkblz::V1::ListFileNamesRequest.new( bucket, params[:limit], params[:start_at]) end end |