module MonkeyButler::Actions
Public Instance Methods
bundle()
click to toggle source
# File lib/monkey_butler/actions.rb, line 29 def bundle inside(destination_root) { run "bundle" } end
git(commands={})
click to toggle source
Run a command in git.
git :init git add: "this.file that.rb" git add: "onefile.rb", rm: "badfile.cxx"
# File lib/monkey_butler/actions.rb, line 8 def git(commands={}) if commands.is_a?(Symbol) run "git #{commands}" else commands.each do |cmd, options| run "git #{cmd} #{options}" end end end
git_add(*paths)
click to toggle source
# File lib/monkey_butler/actions.rb, line 18 def git_add(*paths) inside(destination_root) do git add: paths.flatten.join(' ') end end
truncate_database()
click to toggle source
# File lib/monkey_butler/actions.rb, line 24 def truncate_database say_status :truncate, database.to_s, :yellow database.drop end
unique_tag_for_version(version)
click to toggle source
# File lib/monkey_butler/actions.rb, line 33 def unique_tag_for_version(version) return version if options['pretend'] MonkeyButler::Util.unique_tag_for_version(version) end