Class: EY::Serverside::LockfileParser

Inherits:
Object
  • Object
show all
Defined in:
lib/engineyard-serverside/lockfile_parser.rb

Defined Under Namespace

Classes: BaseParser, Parse09, Parse10, Parse106

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lockfile_contents) ⇒ LockfileParser

Returns a new instance of LockfileParser.



8
9
10
# File 'lib/engineyard-serverside/lockfile_parser.rb', line 8

def initialize(lockfile_contents)
  @lockfile_version, @bundler_version = Parse106.new(lockfile_contents).parse
end

Instance Attribute Details

#bundler_versionObject (readonly)

Returns the value of attribute bundler_version.



6
7
8
# File 'lib/engineyard-serverside/lockfile_parser.rb', line 6

def bundler_version
  @bundler_version
end

#lockfile_versionObject (readonly)

Returns the value of attribute lockfile_version.



6
7
8
# File 'lib/engineyard-serverside/lockfile_parser.rb', line 6

def lockfile_version
  @lockfile_version
end