Class: FileManager
- Inherits:
-
Object
show all
- Defined in:
- lib/file_manager.rb
Defined Under Namespace
Classes: Logger
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(options) ⇒ FileManager
Returns a new instance of FileManager.
5
6
7
8
|
# File 'lib/file_manager.rb', line 5
def initialize options
@options = options
@logger = FileManager::Logger.new options
end
|
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
3
4
5
|
# File 'lib/file_manager.rb', line 3
def options
@options
end
|
Instance Method Details
#delete_file(file_name) ⇒ Object
26
27
28
|
# File 'lib/file_manager.rb', line 26
def delete_file file_name
raise 'Not implemented!'
end
|
#download_to_temp_file(file_name) ⇒ Object
18
19
20
|
# File 'lib/file_manager.rb', line 18
def download_to_temp_file(file_name)
raise 'Not implemented!'
end
|
#list_files(prefix = '', file_extension = '*') ⇒ Object
22
23
24
|
# File 'lib/file_manager.rb', line 22
def list_files(prefix = '', file_extension = '*')
raise 'Not implemented!'
end
|
#read_file(file_name) ⇒ Object
10
11
12
|
# File 'lib/file_manager.rb', line 10
def read_file file_name
raise 'Not implemented!'
end
|
#save_file(file_name, file_contents, write_options = {}) ⇒ Object
14
15
16
|
# File 'lib/file_manager.rb', line 14
def save_file(file_name, file_contents, write_options = {})
raise 'Not implemented!'
end
|