Sha256: b896c4e60704b29a1c46189c5e0736e42bc9dbfdcda1009fe73fd01b5258829f

Contents?: true

Size: 398 Bytes

Versions: 12

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

module Spandx
  module Cli
    module Commands
      class Pull
        def initialize(options)
          @options = options
        end

        def execute(output: $stdout)
          Spandx.git.each_value do |db|
            output.puts "Updating #{db.url}..."
            db.update!
          end
          output.puts 'OK'
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spandx-0.15.0 lib/spandx/cli/commands/pull.rb
spandx-0.14.0 lib/spandx/cli/commands/pull.rb
spandx-0.13.5 lib/spandx/cli/commands/pull.rb
spandx-0.13.4 lib/spandx/cli/commands/pull.rb
spandx-0.13.3 lib/spandx/cli/commands/pull.rb
spandx-0.13.2 lib/spandx/cli/commands/pull.rb
spandx-0.13.1 lib/spandx/cli/commands/pull.rb
spandx-0.13.0 lib/spandx/cli/commands/pull.rb
spandx-0.12.3 lib/spandx/cli/commands/pull.rb
spandx-0.12.2 lib/spandx/cli/commands/pull.rb
spandx-0.12.1 lib/spandx/cli/commands/pull.rb
spandx-0.12.0 lib/spandx/cli/commands/pull.rb