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
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.
-
#vagabondfile ⇒ Object
readonly
Returns the value of attribute vagabondfile.
Instance Method Summary collapse
-
#initialize(vagabondfile, base_directory, options = {}) ⇒ Uploader
constructor
A new instance of Uploader.
- #prepare ⇒ Object
- #upload ⇒ Object
Methods included from Helpers
Constructor Details
#initialize(vagabondfile, base_directory, options = {}) ⇒ Uploader
Returns a new instance of Uploader.
19 20 21 22 23 24 |
# File 'lib/vagabond/uploader.rb', line 19 def initialize(vagabondfile, base_directory, ={}) @store = base_directory @options = Mash.new() @ui = [:ui] @vagabondfile = vagabondfile end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
13 14 15 |
# File 'lib/vagabond/uploader.rb', line 13 def @options end |
#store ⇒ Object (readonly)
Returns the value of attribute store.
12 13 14 |
# File 'lib/vagabond/uploader.rb', line 12 def store @store end |
#ui ⇒ Object (readonly)
Returns the value of attribute ui.
14 15 16 |
# File 'lib/vagabond/uploader.rb', line 14 def ui @ui end |
#vagabondfile ⇒ Object (readonly)
Returns the value of attribute vagabondfile.
15 16 17 |
# File 'lib/vagabond/uploader.rb', line 15 def vagabondfile @vagabondfile end |
Instance Method Details
#prepare ⇒ Object
26 27 |
# File 'lib/vagabond/uploader.rb', line 26 def prepare end |
#upload ⇒ Object
29 30 |
# File 'lib/vagabond/uploader.rb', line 29 def upload end |