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

Version Path
bonethug-0.0.99 lib/bonethug/utils.rb
bonethug-0.0.98 lib/bonethug/utils.rb
bonethug-0.0.97 lib/bonethug/utils.rb
bonethug-0.0.96 lib/bonethug/utils.rb
bonethug-0.0.95 lib/bonethug/utils.rb
bonethug-0.0.93 lib/bonethug/utils.rb
bonethug-0.0.92 lib/bonethug/utils.rb
bonethug-0.0.91 lib/bonethug/utils.rb
bonethug-0.0.90 lib/bonethug/utils.rb
bonethug-0.0.89 lib/bonethug/utils.rb
bonethug-0.0.88 lib/bonethug/utils.rb
bonethug-0.0.87 lib/bonethug/utils.rb
bonethug-0.0.86 lib/bonethug/utils.rb
bonethug-0.0.85 lib/bonethug/utils.rb
bonethug-0.0.84 lib/bonethug/utils.rb
bonethug-0.0.83 lib/bonethug/utils.rb
bonethug-0.0.82 lib/bonethug/utils.rb
bonethug-0.0.81 lib/bonethug/utils.rb
bonethug-0.0.80 lib/bonethug/utils.rb
bonethug-0.0.79 lib/bonethug/utils.rb