Class: Vagabond::Uploader
- Inherits:
-
Object
- Object
- Vagabond::Uploader
- Includes:
- Helpers
- Defined in:
- lib/vagabond/uploader.rb,
lib/vagabond/uploader/knife.rb,
lib/vagabond/uploader/berkshelf.rb,
lib/vagabond/uploader/librarian.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Berkshelf, Knife, Librarian
Constant Summary
Constants included from Helpers
Helpers::GEN_NAME_LENGTH, Helpers::RAND_CHARS
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#store ⇒ Object
readonly
Returns the value of attribute store.
-
#ui ⇒ Object
readonly
Returns the value of attribute ui.
Instance Method Summary collapse
-
#initialize(base_directory, options = {}) ⇒ Uploader
constructor
A new instance of Uploader.
- #prepare ⇒ Object
- #upload ⇒ Object
Methods included from Helpers
Constructor Details
#initialize(base_directory, options = {}) ⇒ Uploader
Returns a new instance of Uploader.
17 18 19 20 21 |
# File 'lib/vagabond/uploader.rb', line 17 def initialize(base_directory, ={}) @store = base_directory = Mash.new() @ui = [:ui] end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
12 13 14 |
# File 'lib/vagabond/uploader.rb', line 12 def end |
#store ⇒ Object (readonly)
Returns the value of attribute store.
11 12 13 |
# File 'lib/vagabond/uploader.rb', line 11 def store @store end |
#ui ⇒ Object (readonly)
Returns the value of attribute ui.
13 14 15 |
# File 'lib/vagabond/uploader.rb', line 13 def ui @ui end |
Instance Method Details
#prepare ⇒ Object
23 24 |
# File 'lib/vagabond/uploader.rb', line 23 def prepare end |
#upload ⇒ Object
26 27 |
# File 'lib/vagabond/uploader.rb', line 26 def upload end |