Class: Uttk::Strategies::Configure
- Includes:
- Concrete
- Defined in:
- lib/uttk/strategies/Configure.rb
Overview
I run then check whether the configure stage of a compilation process fail. I used in the Package strategy to handle the configuration stage.
Constant Summary collapse
- CONFIGURE =
/^configure(\.sh)?$/
- CONFIGURE_INPUT =
/^configure\.(ac|in)$/
Instance Attribute Summary
Attributes inherited from Strategy
Class Method Summary collapse
- .have_configure?(dir = Pathname.new('.')) ⇒ Boolean
- .have_configure_input?(dir = Pathname.new('.')) ⇒ Boolean
Methods inherited from Strategy
#abort, #assert_cmd, #assign, #clean_instance_variables, #display_unexpected_exc, #display_unexpected_synflow_exc, #fail, #initialize, #initialize_flow_factory, #mk_system_runner, #name=, #pass, #raise_error, #reject, #run, #running?, #skip, #skip_if_cached, #skip_pass, #skip_wrt_rpath_and_rpath_exclude, #strategy, #strategy=, #symbols=, #symtbl, #symtbl=, #testify, #timeout=, to_form, #to_s, to_yaml_type, #wclass=
Constructor Details
This class inherits a constructor from Uttk::Strategies::Strategy
Class Method Details
.have_configure?(dir = Pathname.new('.')) ⇒ Boolean
62 63 64 65 |
# File 'lib/uttk/strategies/Configure.rb', line 62 def self.have_configure? ( dir=Pathname.new('.') ) res = dir.entries.find { |ent| ent.to_s =~ CONFIGURE } (res.nil?) ? nil : dir + res end |
.have_configure_input?(dir = Pathname.new('.')) ⇒ Boolean
57 58 59 60 |
# File 'lib/uttk/strategies/Configure.rb', line 57 def self.have_configure_input? ( dir=Pathname.new('.') ) res = dir.entries.find { |ent| ent.to_s =~ CONFIGURE_INPUT } (res.nil?) ? nil : dir + res end |