Sha256: 610358e04ce875f265904eade30b8913d9c7f34d418a5cafeb0b73ce6e4e29fa
Contents?: true
Size: 496 Bytes
Versions: 24
Compression:
Stored size: 496 Bytes
Contents
require 'fileutils' module Bonethug #arguments can be for example db:migrate def self.call_rake(arguments) if RUBY_PLATFORM =~ /mswin/ rake_cmd = "rake.bat" #very important because windows will break with just "rake" else rake_cmd = "rake" end puts "calling #{rake_cmd} " + arguments puts system("#{rake_cmd} " + arguments) puts $? end def self.setup_gitpull(target = '.') path = File.expand_path target `chown www-data #{path}` end end
Version data entries
24 entries across 24 versions & 1 rubygems