Sha256: cc6f10dea37437b4343938891244d084eae3cc1119576f5483e7c5f8a6208a0c

Contents?: true

Size: 404 Bytes

Versions: 3

Compression:

Stored size: 404 Bytes

Contents

command 'fetch' do
  banner "Fetch a repo into it's cache dir.\n"\
  "Usage: dotfu fetch [options] DOTFILES\n"

  run do |opts, args|
    return nil if !args

    # POC only, it still needs to check for output errors and a few other things.
    args.each do |a|
      repo = Dotfu::Repos.new a
      output = repo.fetch
      puts "Repo #{repo.repo} from: #{repo.user}:\n#{output[1]}"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dotfu-0.2.0 commands/fetch.rb
dotfu-0.1.1 commands/fetch.rb
dotfu-0.1.0 commands/fetch.rb