Sha256: 6e79646e896a36d73331ea1ed4f97ce62f045ed14907fa4935f4c4c6a123c69d
Contents?: true
Size: 1.52 KB
Versions: 5
Compression:
Stored size: 1.52 KB
Contents
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>. # Copyright:: Copyright (c) 2004, 2005 TTK team. All rights reserved. # License:: LGPL # $Id: Ball.rb 567 2005-04-13 08:00:06Z polrop $ module TTK module Strategies # I'm deprecated, use Package instead. class Ball < Composite include Concrete def prologue super suite = Suite.new(self) suite.name = 'contents' suite.attributes = { :strategy => Cmd, :fatal => true, :weight => 0 } cmd_attributes = { :exit => 0, :dir => '<<extract_dir>>', :verbose_print => true } extract = suite.create(Extract) extract.name = 'Extracting' extract.tarball = @tarball extract.dest = @dest distclean = suite.create(cmd_attributes) distclean.name = 'Distclean' distclean.command = 'make distclean' configure = suite.create(Configure) configure.name = 'Configuring' configure.dir = cmd_attributes[:dir] build = suite.create(cmd_attributes) build.name = 'Building' build.command = 'make all' test = suite.create(@test) test.fatal = false test.weight = 1 clean = suite.create(Clean) clean.name = 'Cleaning' clean.dir = cmd_attributes[:dir] @contents = [suite] end attribute :tarball, 'path to the tarball', :mandatory attribute :dest, 'extraction directory', '/tmp' attribute :author, 'the author of the tarball' attribute :test, 'the test to execute', :mandatory, :invisible, :dont_expand end # class Ball end # module Strategies end # module TTK
Version data entries
5 entries across 5 versions & 1 rubygems