Class: Bcli::Commands::Drive

Inherits:
Thor
  • Object
show all
Defined in:
lib/bcli/commands/drive.rb,
lib/bcli/commands/drive/search.rb,
lib/bcli/commands/drive/upload.rb

Defined Under Namespace

Classes: Search, Upload

Instance Method Summary collapse

Instance Method Details

#searchObject



13
14
15
16
17
18
19
20
# File 'lib/bcli/commands/drive.rb', line 13

def search
  if options[:help]
    invoke :help, ["search"]
  else
    require_relative "drive/search"
    Bcli::Commands::Drive::Search.new(options).execute
  end
end

#uploadObject



25
26
27
28
29
30
31
32
# File 'lib/bcli/commands/drive.rb', line 25

def upload
  if options[:help]
    invoke :help, ["upload"]
  else
    require_relative "drive/upload"
    Bcli::Commands::Drive::Upload.new(options).execute
  end
end