Module: Vendor

Defined in:
lib/vendor.rb,
lib/vendor/ui.rb,
lib/vendor/api.rb,
lib/vendor/cli.rb,
lib/vendor/spec.rb,
lib/vendor/plist.rb,
lib/vendor/xcode.rb,
lib/vendor/config.rb,
lib/vendor/cli/app.rb,
lib/vendor/version.rb,
lib/vendor/cli/auth.rb,
lib/vendor/template.rb,
lib/vendor/cli/console.rb,
lib/vendor/vendor_file.rb,
lib/vendor/vendor_spec.rb,
lib/vendor/vendor_file/dsl.rb,
lib/vendor/vendor_file/loader.rb,
lib/vendor/vendor_file/source.rb,
lib/vendor/vendor_file/library.rb,
lib/vendor/vendor_spec/builder.rb,
lib/vendor/vendor_file/library/git.rb,
lib/vendor/vendor_file/library/base.rb,
lib/vendor/vendor_file/library/local.rb,
lib/vendor/vendor_file/library/remote.rb,
lib/vendor/vendor_file/dependency_graph.rb

Defined Under Namespace

Modules: API, CLI, Config, Plist, Template, VendorFile, VendorSpec, XCode Classes: Spec, UI, Version

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.uiObject



34
35
36
# File 'lib/vendor.rb', line 34

def ui
  @ui ||= UI.new
end

Class Method Details

.library_pathObject



38
39
40
41
42
43
44
# File 'lib/vendor.rb', line 38

def library_path
  unless @library_path
    @library_path = File.expand_path("~/.vendor/libraries/")
    FileUtils.mkdir_p @library_path
  end
  @library_path
end

.rootObject



26
27
28
# File 'lib/vendor.rb', line 26

def root
  File.join File.expand_path("../", __FILE__)
end

.versionObject



30
31
32
# File 'lib/vendor.rb', line 30

def version
  @version ||= File.read(File.join(Vendor.root, "..", "VERSION")).chomp
end