Sha256: aa754620dc65ef9295c42c230eff1ca73a17fa1ded588ddde8a63176b377044f
Contents?: true
Size: 523 Bytes
Versions: 51
Compression:
Stored size: 523 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
51 entries across 51 versions & 1 rubygems