Sha256: 09cdb59bd5de1f843f5223d7b0f0bfc9a19ca68b103f4d792d7b1817051354f2

Contents?: true

Size: 518 Bytes

Versions: 95

Compression:

Stored size: 518 Bytes

Contents

# ********** Copyright 2016 Viacom, Inc. Apache 2.0 **********

module Git
  class Stashes
    def pop(index=nil)
      @base.lib.stash_pop(index)
    end
    def drop(index=nil)
      @base.lib.stash_drop(index)
    end
  end
  class Lib
    def stash_pop(id = nil)
      if id
        command('stash pop', [id])
      else
        command('stash pop')
      end
    end
    def stash_drop(id = nil)
      if id
        command('stash drop', [id])
      else
        command('stash drop')
      end
    end
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
roku_builder-4.30.0 lib/roku_builder/git.rb
roku_builder-4.29.9 lib/roku_builder/git.rb
roku_builder-4.29.8 lib/roku_builder/git.rb
roku_builder-4.29.7 lib/roku_builder/git.rb
roku_builder-4.29.6 lib/roku_builder/git.rb
roku_builder-4.29.4 lib/roku_builder/git.rb
roku_builder-4.29.2 lib/roku_builder/git.rb
roku_builder-4.29.1 lib/roku_builder/git.rb
roku_builder-4.28.0 lib/roku_builder/git.rb
roku_builder-4.27.2 lib/roku_builder/git.rb
roku_builder-4.27.1 lib/roku_builder/git.rb
roku_builder-4.27.0 lib/roku_builder/git.rb
roku_builder-4.26.2 lib/roku_builder/git.rb
roku_builder-4.26.1 lib/roku_builder/git.rb
roku_builder-4.26.0 lib/roku_builder/git.rb
roku_builder-4.25.6 lib/roku_builder/git.rb
roku_builder-4.25.5 lib/roku_builder/git.rb
roku_builder-4.25.4 lib/roku_builder/git.rb
roku_builder-4.25.3 lib/roku_builder/git.rb
roku_builder-4.25.1 lib/roku_builder/git.rb