Sha256: 20e4422d616df494cf3fccd90c0f4182eb840fb203a625ff4c80602cf3d23e79

Contents?: true

Size: 246 Bytes

Versions: 3

Compression:

Stored size: 246 Bytes

Contents

require 'git'

module Dude
  class Git
    attr_accessor :options

    def initialize(options = {})
      @options = options
    end

    def call
      ::Git.init.branch(options[:branch_name]).checkout if options[:branch_name]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dude-cli-0.2.3 lib/dude/git.rb
dude-cli-0.2.2 lib/dude/git.rb
dude-cli-0.2.1 lib/dude/git.rb