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.73 lib/bonethug/utils.rb
bonethug-0.0.72 lib/bonethug/utils.rb
bonethug-0.0.71 lib/bonethug/utils.rb
bonethug-0.0.70 lib/bonethug/utils.rb
bonethug-0.0.69 lib/bonethug/utils.rb
bonethug-0.0.68 lib/bonethug/utils.rb
bonethug-0.0.67 lib/bonethug/utils.rb
bonethug-0.0.66 lib/bonethug/utils.rb
bonethug-0.0.63 lib/bonethug/utils.rb
bonethug-0.0.62 lib/bonethug/utils.rb
bonethug-0.0.61 lib/bonethug/utils.rb
bonethug-0.0.60 lib/bonethug/utils.rb
bonethug-0.0.59 lib/bonethug/utils.rb
bonethug-0.0.55 lib/bonethug/utils.rb
bonethug-0.0.54.17 lib/bonethug/utils.rb
bonethug-0.0.54.16 lib/bonethug/utils.rb
bonethug-0.0.54.15 lib/bonethug/utils.rb
bonethug-0.0.54.14 lib/bonethug/utils.rb
bonethug-0.0.54.13 lib/bonethug/utils.rb
bonethug-0.0.54.11 lib/bonethug/utils.rb