Sha256: f690bb7e4c9fcb07bde84bbb3cd7dffd6b77a8fe477b4a42954e83794673448e

Contents?: true

Size: 487 Bytes

Versions: 59

Compression:

Stored size: 487 Bytes

Contents

require 'rubygems'
require 'rake'

root = File.dirname __FILE__

task :default => :publish

def system(cmd)
  puts ">> #{cmd}"
  super cmd
end

desc 'push to Github'
task :publish do
  Dir.chdir(root) do
    Dir.chdir(root + '/public') do
      system 'git fetch --all'
      system 'git reset --hard origin/master'
    end
    sh 'jekyll build'
    Dir.chdir(root + '/public') do
      system 'git add -A .'
      system 'git commit -m Update'
      system 'git push'
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
dynflow-1.3.0 doc/pages/Rakefile
dynflow-1.2.3 doc/pages/Rakefile
dynflow-1.2.2 doc/pages/Rakefile
dynflow-1.2.1 doc/pages/Rakefile
dynflow-1.2.0 doc/pages/Rakefile
dynflow-1.2.0.pre1 doc/pages/Rakefile
dynflow-1.1.6 doc/pages/Rakefile
dynflow-1.1.5 doc/pages/Rakefile
dynflow-1.1.4 doc/pages/Rakefile
dynflow-1.1.3 doc/pages/Rakefile
dynflow-1.1.2 doc/pages/Rakefile
dynflow-1.1.1 doc/pages/Rakefile
dynflow-1.1.0 doc/pages/Rakefile
dynflow-1.0.5 doc/pages/Rakefile
dynflow-1.0.4 doc/pages/Rakefile
dynflow-1.0.3 doc/pages/Rakefile
dynflow-1.0.2 doc/pages/Rakefile
dynflow-1.0.1 doc/pages/Rakefile
dynflow-1.0.0 doc/pages/Rakefile
dynflow-0.8.37 doc/pages/Rakefile