Sha256: 9e0b2229e6fc913ec293f997d66179821e4bef331ccfe4f04d02725d717e8b40

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

require 'English'
require 'gitme/command_line_options'

class Gitme
  class Error < StandardError; end

  def initialize(settings)
    @settings = settings
  end

  def execute!
    clone
  end

  def clone
    `git clone #{@settings[:repository]} #{@settings[:name]}`
    if $?.exitstatus > 0
      raise(Gitme::Error, "Git failed to clone #{@settings[:repository]}")
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gitme-0.0.1 lib/gitme.rb