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

Version Path
bonethug-0.0.36 lib/bonethug/utils.rb
bonethug-0.0.35 lib/bonethug/utils.rb
bonethug-0.0.33 lib/bonethug/utils.rb
bonethug-0.0.32 lib/bonethug/utils.rb
bonethug-0.0.31 lib/bonethug/utils.rb
bonethug-0.0.30 lib/bonethug/utils.rb
bonethug-0.0.29 lib/bonethug/utils.rb
bonethug-0.0.28 lib/bonethug/utils.rb
bonethug-0.0.27 lib/bonethug/utils.rb
bonethug-0.0.26 lib/bonethug/utils.rb
bonethug-0.0.25 lib/bonethug/utils.rb