Sha256: 2a3b4c1a7e3e73740c43a12a0f7c640cc6f464fd2143ee1dee885e5a7dfc1b99
Contents?: true
Size: 1.69 KB
Versions: 1
Compression:
Stored size: 1.69 KB
Contents
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with this # work for additional information regarding copyright ownership. The ASF # licenses this file to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. require "yaml" require 'rubygems' require 'lock_jar/resolver' require 'lock_jar/dsl' require 'lock_jar/runtime' module LockJar # Lock a Jarfile and generate a Jarfile.lock # # Accepts path to the jarfile and hash of options to configure LockJar def self.lock( jarfile = 'Jarfile', opts = {} ) Runtime.new( opts ).lock( jarfile, opts ) end # List jars for an array of scope in a lockfile # # Accepts path to the lockfile, array of scopes, and hash of options to configure LockJar def self.list( lockfile = 'Jarfile.lock', scopes = ['compile', 'runtime'], opts = {} ) Runtime.new( opts ).list( lockfile, scopes ) end # Load jars for an array of scopes in a lockfile # # Accepts a path to the lockfile, array scopes, and hash of optiosn to configure LockJar def self.load( lockfile = 'Jarfile.lock', scopes = ['compile', 'runtime'], opts = {} ) Runtime.new( opts ).load( lockfile, scopes ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lock_jar-0.0.2 | lib/lock_jar.rb |