Sha256: 16ca0947b802d80cb14953d1d59238e70df41ec7525488a1f4f4b872ca7c0003

Contents?: true

Size: 881 Bytes

Versions: 48

Compression:

Stored size: 881 Bytes

Contents

require 'autoproj/cli/base'

module Autoproj
    module CLI
        class Log < Base
            def run(args, options = Hash.new)
                ws = Workspace.from_environment
                ws.load_config

                if !ws.config.import_log_enabled?
                    Autoproj.error "import log is disabled on this install"
                    return
                elsif !Ops::Snapshot.update_log_available?(ws.manifest)
                    Autoproj.error "import log is not available on this install, the main build configuration repository is not using git"
                    return
                end

                exec(Autobuild.tool(:git), "--git-dir=#{ws.config_dir}/.git", 'reflog',
                     Ops::Snapshot.import_state_log_ref, '--format=%Cgreen%gd %Cblue%cr %Creset%gs',
                     *args)
            end
        end
    end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
autoproj-2.2.2 lib/autoproj/cli/log.rb
autoproj-2.2.1 lib/autoproj/cli/log.rb
autoproj-2.2.0 lib/autoproj/cli/log.rb
autoproj-2.1.2 lib/autoproj/cli/log.rb
autoproj-2.1.1 lib/autoproj/cli/log.rb
autoproj-2.1.0 lib/autoproj/cli/log.rb
autoproj-2.1.0.rc1 lib/autoproj/cli/log.rb
autoproj-2.0.3 lib/autoproj/cli/log.rb
autoproj-2.0.2 lib/autoproj/cli/log.rb
autoproj-2.0.1 lib/autoproj/cli/log.rb
autoproj-2.0.0 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc42 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc41 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc40 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc39 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc38 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc37 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc36 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc35 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc34 lib/autoproj/cli/log.rb