Sha256: f9fee15fd0bfd0d6ba1974fd59badbc5e731982ca2895f7517cd63b07c0ac33b

Contents?: true

Size: 532 Bytes

Versions: 7

Compression:

Stored size: 532 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

7 entries across 7 versions & 1 rubygems

Version Path
reveal-ck-0.6.0 rakelib/relish.rake
reveal-ck-0.5.1 rakelib/relish.rake
reveal-ck-0.5.0 rakelib/relish.rake
reveal-ck-0.4.2 rakelib/relish.rake
reveal-ck-0.4.1 rakelib/relish.rake
reveal-ck-0.4.0 rakelib/relish.rake
reveal-ck-0.3.0 rakelib/relish.rake