Sha256: 33e3b783a56c8399f415462b44e241193cd13ccce495f239e11ca48f713a6a40

Contents?: true

Size: 834 Bytes

Versions: 1

Compression:

Stored size: 834 Bytes

Contents

require_relative "lib/process_sip"

# lib/process_sip/executables/git.rb
git = ProcessSip.git do
  def commit_all(message)
    add "." and commit message
  end

  def commit(message)
    super :m, message
  end
end
p git

git = ProcessSip.git do
  def with_work_tree = with(work_tree: __dir__)
  def with_git_dir   = with(git_dir: __dir__ + "/.git")
end
p git

git = ProcessSip.git.preprint
p git
define_method(:git) { git }

binding.irb

# git.with_work_tree.with(git_dir: __dir__ + "/.git").omit(:git_dir, :work_tree)
# git.with_work_tree.with_git_dir.omit(:git_dir, :work_tree)
# git.with_work_tree.silent.preprint.branch :d, "branch"

# def git.commit(message) = super(:m, message)
#
# def git.commit_all(message)
#   add "." and commit message
# end
#
# git_dir = git.with(git_dir: __dir__)
# define_method(:git_dir) { git_dir }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
process_sip-0.1.0 test.rb