Class: TTK::Strategies::Ball

Inherits:
Composite show all
Includes:
Concrete
Defined in:
lib/ttk/strategies/Ball.rb

Overview

I’m deprecated, use Package instead.

Instance Attribute Summary

Attributes inherited from Strategy

#status, #symtbl

Instance Method Summary collapse

Methods inherited from Composite

#<<, #create, #initialize, #initialize_test, #new_symtbl

Methods inherited from Strategy

#abort, #assign, #clean_instance_variables, #display_unexpected_exc, #display_unexpected_synflow_exc, #fail, #initialize, #initialize_flow_factory, #pass, #raise_error, #reject, #run, #running?, #skip, #skip_if_cached, #strategy, #strategy=, #symbols=, #testify, #timeout=, #to_s, #wclass=

Constructor Details

This class inherits a constructor from TTK::Strategies::Composite

Instance Method Details

#prologueObject



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/ttk/strategies/Ball.rb', line 15

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