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.0.0.rc33 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc32 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc31 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc30 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc29 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc28 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc27 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc26 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc25 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc24 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc23 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc22 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc21 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc20 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc19 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc18 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc17 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc16 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc15 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc14 lib/autoproj/cli/log.rb