Module: Bundler

Defined in:
lib/bundler08.rb,
lib/bundler08/cli.rb,
lib/bundler08/dsl.rb,
lib/bundler08/bundle.rb,
lib/bundler08/finder.rb,
lib/bundler08/source.rb,
lib/bundler08/resolver.rb,
lib/bundler08/dependency.rb,
lib/bundler08/gem_bundle.rb,
lib/bundler08/environment.rb,
lib/bundler08/remote_specification.rb

Defined Under Namespace

Classes: Bundle, CLI, DefaultManifestNotFound, Dependency, DirectorySource, DirectorySourceError, Dsl, Environment, Finder, GemBundle, GemDirectorySource, GemNotFound, GemSource, GitSource, GitSourceError, InvalidCacheArgument, InvalidEnvironmentName, InvalidKey, InvalidRepository, ManifestFileNotFound, RemoteSpecification, Resolver, Source, SourceNotCached, SystemGemSource, VersionConflict

Constant Summary collapse

VERSION =
"0.8.5"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject



27
28
29
30
31
32
33
# File 'lib/bundler08.rb', line 27

def logger
  @logger ||= begin
    logger = Logger.new(STDOUT, Logger::INFO)
    logger.formatter = proc {|_,_,_,msg| "#{msg}\n" }
    logger
  end
end

.mode=(value) ⇒ Object (writeonly)

Sets the attribute mode

Parameters:

  • value

    the value to set the attribute mode to.



25
26
27
# File 'lib/bundler08.rb', line 25

def mode=(value)
  @mode = value
end

Class Method Details

.local?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/bundler08.rb', line 35

def local?
  @mode == :local
end

.remote?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/bundler08.rb', line 43

def remote?
  @mode == :readwrite
end

.writable?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/bundler08.rb', line 39

def writable?
  @mode != :readonly
end