check_consistent()
click to toggle source
def check_consistent
raise Error, "#{specfile_name} and #{lockfile_name} are out of sync!" unless spec_consistent_with_lock?
end
check_lockfile()
click to toggle source
def check_lockfile
raise Error, "#{lockfile_name} missing!" unless lockfile_path.exist?
end
check_preconditions()
click to toggle source
def check_preconditions
check_specfile
check_lockfile
check_consistent
end
check_specfile()
click to toggle source
def check_specfile
raise Error, "#{specfile_name} missing!" unless specfile_path.exist?
end
create_install_path()
click to toggle source
def create_install_path
install_path.rmtree if install_path.exist?
install_path.mkpath
end
install_manifests(manifests)
click to toggle source
def install_manifests(manifests)
manifests.each do |manifest|
manifest.install!
end
end
install_path()
click to toggle source
def install_path
environment.install_path
end
lock()
click to toggle source
def lock
environment.lock
end
lockfile_name()
click to toggle source
def lockfile_name
environment.lockfile_name
end
lockfile_path()
click to toggle source
def lockfile_path
environment.lockfile_path
end
sorted_manifests()
click to toggle source
def sorted_manifests
ManifestSet.sort(lock.manifests)
end
spec()
click to toggle source
def spec
environment.spec
end
spec_change_set(spec, lock)
click to toggle source
def spec_change_set(spec, lock)
SpecChangeSet.new(environment, spec, lock)
end
spec_consistent_with_lock?()
click to toggle source
def spec_consistent_with_lock?
spec_change_set(spec, lock).same?
end
specfile_name()
click to toggle source
def specfile_name
environment.specfile_name
end
specfile_path()
click to toggle source
def specfile_path
environment.specfile_path
end