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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers

included

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

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

#storeObject (readonly)

Returns the value of attribute store.



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

def store
  @store
end

#uiObject (readonly)

Returns the value of attribute ui.



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

def ui
  @ui
end

#vagabondfileObject (readonly)

Returns the value of attribute vagabondfile.



15
16
17
# File 'lib/vagabond/uploader.rb', line 15

def vagabondfile
  @vagabondfile
end

Instance Method Details

#prepareObject



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

def prepare
end

#uploadObject



29
30
# File 'lib/vagabond/uploader.rb', line 29

def upload
end