Sha256: 477f594b7ca89fe24e851549c50f76000e9ad805bdfc0965af5f9c9f870e6a55

Contents?: true

Size: 530 Bytes

Versions: 5

Compression:

Stored size: 530 Bytes

Contents

namespace :relish do
  def run(cmd)
    require 'open3'
    puts "Running '#{cmd}'"
    Open3.popen3(cmd) do |_, o, e, _|
      puts 'STDOUT:'
      puts o.readlines
      puts
      puts 'STDERR:'
      puts e.readlines
    end
  end

  desc 'Publish to relish'
  task :push do
    run 'relish push jedcn/reveal-ck'
  end

  # I used this to initialize relish. I don't think I'll need to run
  # it again.. so there's no "desc," but it's here just in case.
  task :init do
    run 'relish projects:add jedcn/reveal-ck'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reveal-ck-4.0.0 rakelib/relish.rake
reveal-ck-3.9.2 rakelib/relish.rake
reveal-ck-3.9.1 rakelib/relish.rake
reveal-ck-3.9.0 rakelib/relish.rake
reveal-ck-3.8.1 rakelib/relish.rake