Sha256: 13e92fc3326211292c1dadfab21a84d5e5e07105117baf3499f83ba8bd0422c1
Contents?: true
Size: 1.48 KB
Versions: 50
Compression:
Stored size: 1.48 KB
Contents
require 'autoproj/cli/inspection_tool' require 'autoproj/cli/versions' require 'autoproj/ops/snapshot' module Autoproj module CLI class Commit < InspectionTool def run(*user_selection, options = Hash.new) pkg = manifest.main_package_set.create_autobuild_package importer = pkg.importer if !importer || !importer.kind_of?(Autobuild::Git) raise ConfigError, "cannot use autoproj tag if the main configuration is not managed by git" end versions_file = File.join( ws.config_dir, Workspace::OVERRIDES_DIR, Versions::DEFAULT_VERSIONS_FILE_BASENAME) initialize_and_load versions = CLI::Versions.new(ws) Autoproj.message "creating versions file, this may take a while" versions.run(user_selection, save: File.join(ws.config_dir, versions_file), package_sets: options[:package_sets], output_file: io.path, replace: true, keep_going: options[:keep_going]) importer.run_git(pkg, 'add', versions_file) message = options[:message] || "autoproj created tag #{tag_name}" importer.run_git(pkg, 'commit', '-m', message) end end end end
Version data entries
50 entries across 50 versions & 1 rubygems