Sha256: cf5f4a65cfa3df86fdbce95af95b371175bce7e780206ed271e1809825cfe5f1

Contents?: true

Size: 930 Bytes

Versions: 49

Compression:

Stored size: 930 Bytes

Contents

require 'rubygems'
require 'bundler'
Bundler.require
require 'rspec/core/rake_task'
require "bundler/gem_tasks"

RSpec::Core::RakeTask.new(:spec)

desc "run spec"
task :default => [:spec]

desc "run travis build"
task :travis do
  exec "bundle exec rake SPEC_OPTS='--format documentation'"
end

namespace :print do
  task :script do
    require 'vx/message/testing'
    require File.expand_path("../spec/support/fixture", __FILE__)
    require File.expand_path("../spec/support/create", __FILE__)

    task = create :task
    source = create :source

    builder = Vx::Builder::Script.new(task, source)

    puts "\n#===> BEGIN BEFORE SCRIPT"
    puts builder.to_before_script
    puts "#===> END BEFORE SCRIPT\n"

    puts "\n#===> BEGIN SCRIPT\n"
    puts builder.to_script
    puts "#===> END SCRIPT\n\n"

    puts "\n#===> BEGIN AFTER SCRIPT\n"
    puts builder.to_after_script
    puts "#===> END AFTER SCRIPT\n\n"
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
vx-builder-0.0.10 Rakefile
vx-builder-0.0.9 Rakefile
vx-builder-0.0.8 Rakefile
vx-builder-0.0.7 Rakefile
vx-builder-0.0.6 Rakefile
vx-builder-0.0.5 Rakefile
vx-builder-0.0.4 Rakefile
vx-builder-0.0.3 Rakefile
vx-builder-0.0.2 Rakefile