Sha256: 2cd50ea25c1d2e592d340f2b214c734ec24afef6192d4abda2a480a579f9d25e
Contents?: true
Size: 836 Bytes
Versions: 1
Compression:
Stored size: 836 Bytes
Contents
module MonkeyButler module Actions # Run a command in git. # # git :init # git add: "this.file that.rb" # git add: "onefile.rb", rm: "badfile.cxx" def git(commands={}) if commands.is_a?(Symbol) run "git #{commands}" else commands.each do |cmd, options| run "git #{cmd} #{options}" end end end def git_add(*paths) inside(destination_root) do git add: paths.flatten.join(' ') end end def truncate_database say_status :truncate, database.to_s, :yellow database.drop end def bundle inside(destination_root) { run "bundle" } end def unique_tag_for_version(version) return version if options['pretend'] MonkeyButler::Util.unique_tag_for_version(version) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
monkey_butler-1.2.2 | lib/monkey_butler/actions.rb |