Class: Vagabond::Uploader

Inherits:
Object
  • Object
show all
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

Knife

Defined Under Namespace

Classes: Berkshelf, Knife, Librarian

Constant Summary

Constants included from Helpers

Helpers::GEN_NAME_LENGTH, Helpers::RAND_CHARS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers

included

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, options={})
  @store = base_directory
  @options = Mash.new(options)
  @ui = options[:ui]
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



12
13
14
# File 'lib/vagabond/uploader.rb', line 12

def options
  @options
end

#storeObject (readonly)

Returns the value of attribute store.



11
12
13
# File 'lib/vagabond/uploader.rb', line 11

def store
  @store
end

#uiObject (readonly)

Returns the value of attribute ui.



13
14
15
# File 'lib/vagabond/uploader.rb', line 13

def ui
  @ui
end

Instance Method Details

#prepareObject



23
24
# File 'lib/vagabond/uploader.rb', line 23

def prepare
end

#uploadObject



26
27
# File 'lib/vagabond/uploader.rb', line 26

def upload
end