Sha256: 9c66efe52dd4254ae36fa3c5f593d78138aee7725bdcd9c3a42f97fef51d71ee

Contents?: true

Size: 548 Bytes

Versions: 7

Compression:

Stored size: 548 Bytes

Contents

class Rust
  def self.l
    @l ||= SemanticLogger["rust"]
  end

  def self.rustup
    if command? "rustup"
      l.info "run rustup update"
      system "rustup update"
    else
      l.info "skipping; you don't use rustup"
    end
  end

  def self.cargo
    if command? "cargo"
      l.info "update cargo packages"
      system "cargo install --list | grep -Ev '^[[:space:]]' " \
        "| cut -d ' ' -f 1 | xargs cargo install"
    else
      l.info "skipping; you don't use cargo"
    end
  end

  def self.all
    rustup
    cargo
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cvefixer-0.6.8 lib/taskgroups/rust.rb
cvefixer-0.6.7 lib/taskgroups/rust.rb
cvefixer-0.6.6 lib/taskgroups/rust.rb
cvefixer-0.6.5 lib/taskgroups/rust.rb
cvefixer-0.6.4 lib/taskgroups/rust.rb
cvefixer-0.6.3 lib/taskgroups/rust.rb
cvefixer-0.6.2 lib/taskgroups/rust.rb