Sha256: bfa983c67f94e25da4d44c7e2f5e4096f115f29cccd3e7e9dc8f461935b9e37c

Contents?: true

Size: 827 Bytes

Versions: 32

Compression:

Stored size: 827 Bytes

Contents

require 'rubygems'
require 'rake'

root = File.dirname __FILE__

task :default => :publish

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

task :plantuml_install do
  unless File.exist?('.bin/plantuml.jar')
    sh 'wget https://downloads.sourceforge.net/project/plantuml/plantuml.jar -O .bin/plantuml.jar'
  end
end

task :fetch do
  unless File.exist?('public/.git')
    FileUtils.rm_rf('public')
    sh 'git clone git@github.com:theforeman/foreman_remote_execution.git public'
  end
  Dir.chdir('public') do
    sh 'git fetch --all'
    sh 'git checkout gh-pages'
    sh 'git reset --hard origin/gh-pages'
  end
end

task :build => :plantuml_install do
  sh 'jekyll build'
end

task :publish => [:fetch, :build] do
  Dir.chdir('public') do
    sh 'git add -A .'
    sh 'git commit -m Update'
    sh 'git push'
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
foreman_remote_execution-0.2.1 doc/Rakefile
foreman_remote_execution-0.1.2 doc/Rakefile
foreman_remote_execution-0.1.1 doc/Rakefile
foreman_remote_execution-0.1.0 doc/Rakefile
foreman_remote_execution-0.0.10 doc/Rakefile
foreman_remote_execution-0.0.8 doc/Rakefile
foreman_remote_execution-0.0.7 doc/Rakefile
foreman_remote_execution-0.0.6 doc/Rakefile
foreman_remote_execution-0.0.5 doc/Rakefile
foreman_remote_execution-0.0.4 doc/Rakefile
foreman_remote_execution-0.0.3 doc/Rakefile
foreman_remote_execution-0.0.2 doc/Rakefile