Class: Autobuild::DummyPackage

Inherits:
Package
  • Object
show all
Defined in:
lib/autobuild/packages/dummy.rb

Instance Attribute Summary

Attributes inherited from Package

#dependencies, #env, #failures, #importdir, #importer, #logdir, #name, #prefix, #srcdir, #statistics, #update, #updated, #utilities

Instance Method Summary collapse

Methods inherited from Package

[], #add_env_op, #add_stat, #all_dependencies, #applied_post_install?, #apply_env, #apply_post_install, #checked_out?, clear, #depends_on, #depends_on?, #disable, #disable_doc, #disable_phases, #disabled?, #doc_dir, #doc_dir=, #doc_disabled, #doc_target_dir, #doc_target_dir=, #doc_task, each, #enable_doc, #env_add, #env_add_path, #env_add_prefix, #env_set, #env_source_after, #error, #failed?, #file, #find_in_path, #fingerprint, #full_env, #generates_doc?, #has_doc?, #import=, #import_invoked?, #imported?, #in_dir, #initialize, #inspect, #install, #install_doc, #install_invoked?, #installed?, #isolate_errors, #message, #method_missing, #parallel_build_level, #parallel_build_level=, #post_install, #prepare_for_forced_build, #prepare_for_rebuild, #process_formatting_string, #progress, #progress_done, #progress_start, #provides, #resolve_dependency_env, #resolved_env, #respond_to_missing?, #run, #self_fingerprint, #source_tree, #task, #to_s, #update?, #update_environment, #updated?, #utility, #warn, #working_directory

Constructor Details

This class inherits a constructor from Autobuild::Package

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Autobuild::Package

Instance Method Details

#import(options = Hash.new) ⇒ Object



11
# File 'lib/autobuild/packages/dummy.rb', line 11

def import(options = Hash.new); end

#installstampObject



7
8
9
# File 'lib/autobuild/packages/dummy.rb', line 7

def installstamp
    "#{srcdir}/#{STAMPFILE}"
end

#prepareObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/autobuild/packages/dummy.rb', line 13

def prepare
    %w[import prepare build doc].each do |phase|
        task "#{name}-#{phase}"
        t = Rake::Task["#{name}-#{phase}"]
        def t.needed?
            false
        end
    end
    task(installstamp)
    t = Rake::Task[installstamp]
    def t.needed?
        false
    end

    super
end