Sha256: fc7776aa22d6641ac43053eaf347b88a1b3204c1f6cf40751499236cf855cf1d
Contents?: true
Size: 901 Bytes
Versions: 1
Compression:
Stored size: 901 Bytes
Contents
require "guard_helpers/base_helper" require 'rrjj/cmds' module ::GuardHelpers module RrjjHelper include ::GuardHelpers::BaseHelper def start super if defined? super cmds_all = ::Rrjj::Cmds.all.dup cmds = ::Pry::CommandSet.new do cmds_all.each do |cmd| block_command cmd.shortcut, cmd.cmd do |*args| ::Kernel.system "#{cmd.cmd} #{args.join(" ")}" end end end ::Pry::Commands.import cmds end def run_on_modifications(paths) super if defined? super handle_each_path(%r{^lib/(.+)\.rb}) do |path| install end end module ClassMethods def install bx 'rake install' end def zro(bash) system "zeus ro #{bash}" end def write2rrjjsh load 'rrjj/cmds.rb' zro "rails_bashs write2rrjjsh" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rrjj-0.0.1 | lib/guard_helpers/rrjj_helper.rb |