Class: EY::LockfileParser

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lockfile_contents) ⇒ LockfileParser

Returns a new instance of LockfileParser.



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

def initialize(lockfile_contents)
  @contents = lockfile_contents
  @lockfile_version, @bundler_version = parse
end

Instance Attribute Details

#bundler_versionObject (readonly)

Returns the value of attribute bundler_version.



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

def bundler_version
  @bundler_version
end

#lockfile_versionObject (readonly)

Returns the value of attribute lockfile_version.



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

def lockfile_version
  @lockfile_version
end