Sha256: 3455fc8af797a1a2ecfe691207c3250f3205e2b62e87b0202d5e308b4ff5c051

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 Bytes

Contents

require 'json'
require 'fileutils'
require 'open3'
require 'arli'
require_relative 'base'

module Arli
  module Commands
    class Update < Base

      def run
        header
        all_dependencies(command, 'name')
      end

      def update_dependency(name)
        cmd = "cd #{name} && git pull --rebase 2>&1"
        yield(cmd) if block_given?
        cmd
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
arli-0.2.2 lib/arli/commands/update.rb