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.3.9 Rakefile
vx-builder-0.3.8 Rakefile
vx-builder-0.3.7 Rakefile
vx-builder-0.3.6 Rakefile
vx-builder-0.3.5 Rakefile
vx-builder-0.3.4 Rakefile
vx-builder-0.3.3 Rakefile
vx-builder-0.3.2 Rakefile
vx-builder-0.3.1 Rakefile
vx-builder-0.3.0 Rakefile
vx-builder-0.2.2 Rakefile
vx-builder-0.2.1 Rakefile
vx-builder-0.2.0 Rakefile
vx-builder-0.1.8 Rakefile
vx-builder-0.1.7 Rakefile
vx-builder-0.1.6 Rakefile
vx-builder-0.1.5 Rakefile
vx-builder-0.1.4 Rakefile
vx-builder-0.1.3 Rakefile
vx-builder-0.1.2 Rakefile