Class: BoxCli::CreateFolderCommand

Inherits:
BoxCommand show all
Defined in:
lib/box_cli/create_folder_command.rb

Constant Summary

Constants inherited from Command

BoxCli::Command::GLOBAL_OPTION_NAMES

Instance Attribute Summary

Attributes inherited from Command

#args, #global_options, #local_options

Instance Method Summary collapse

Methods inherited from BoxCommand

#initialize, #wrapper

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from BoxCli::BoxCommand

Instance Method Details

#callObject



3
4
5
6
7
# File 'lib/box_cli/create_folder_command.rb', line 3

def call
  folder_name, = @args
  folder_id = wrapper.create_folder(folder_name)
  puts "Created folder '#{folder_name}' (id: #{folder_id})"
end