Module: Rant

Defined in:
lib/rant/progress.rb,
lib/rant.rb,
lib/rant/rantsys.rb,
lib/rant/c/include.rb,
lib/rant/metautils.rb,
lib/rant/import/md5.rb,
lib/rant/import/rubydoc.rb,
lib/rant/import/sys/tgz.rb,
lib/rant/import/sys/zip.rb,
lib/rant/archive/rubyzip.rb,
lib/rant/import/metadata.rb,
lib/rant/import/sys/more.rb,
lib/rant/import/var/lists.rb,
lib/rant/import/signedfile.rb,
lib/rant/import/var/numbers.rb,
lib/rant/import/var/strings.rb,
lib/rant/import/filelist/std.rb,
lib/rant/import/nodes/signed.rb,
lib/rant/import/filelist/core.rb,
lib/rant/import/filelist/more.rb,
lib/rant/import/nodes/default.rb,
lib/rant/import/signature/md5.rb,
lib/rant/import/filelist/inspect.rb,
lib/rant/archive/rubyzip/ioextras.rb,
lib/rant/archive/rubyzip/tempfile_bugfixed.rb,
lib/rant/init.rb

Overview

Taken from the rubyzip package and slightly modified for Rant.

Defined Under Namespace

Modules: Archive, AutoInvokeDirNode, BugFix, C, CSharp, Env, Generators, IOExtras, MetaData, MetaUtils, Node, Plugin, PluginMethods, RantVar, Signature, Sys Classes: AutoSubFileTask, CommandError, DefaultNodeFactory, DirTask, FileList, FileTask, MultiFileList, ProgressCountdown, RacFileList, RantApp, SignedNodeFactory, SignedSourceNode, SourceNode, SysObject, Task, UserTask

Constant Summary collapse

Tempfile =
Tempfile
VERSION =
'0.5.7'

Class Method Summary collapse

Class Method Details

.__rant_no_value__Object


62
63
64
# File 'lib/rant/init.rb', line 62

def self.__rant_no_value__
	@__rant_no_value__
end

.FileList(arg) ⇒ Object


7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/rant/import/filelist/core.rb', line 7

def FileList(arg)
    if arg.respond_to?(:to_rant_filelist)
        arg.to_rant_filelist
    elsif arg.respond_to?(:to_ary)
        FileList.new(arg.to_ary)
        # or?
        #FileList.new.concat(arg.to_ary)
    else
        raise TypeError,
            "cannot convert #{arg.class} into Rant::FileList"
    end
end

.init_import_md5(rac, *rest) ⇒ Object


11
12
13
14
15
# File 'lib/rant/import/md5.rb', line 11

def self.init_import_md5(rac, *rest)
    rac.import "signature/md5"
    rac.import "metadata"
    rac.import "nodes/signed"
end

.init_import_metadata(rac, *rest) ⇒ Object


8
9
10
11
12
13
# File 'lib/rant/import/metadata.rb', line 8

def self.(rac, *rest)
    mi = MetaData::Interface.new(rac)
    rac.var._set("__metadata__", mi)
    rac.at_return(&mi.method(:at_rant_return))
    rac.var._init("__autoclean_common__", []) << MetaData::META_FN
end

.init_import_nodes__default(rac, *rest) ⇒ Object


8
9
10
# File 'lib/rant/import/nodes/default.rb', line 8

def self.init_import_nodes__default(rac, *rest)
    rac.node_factory = DefaultNodeFactory.new
end

.init_import_nodes__signed(rac, *rest) ⇒ Object


9
10
11
# File 'lib/rant/import/nodes/signed.rb', line 9

def self.init_import_nodes__signed(rac, *rest)
    rac.node_factory = SignedNodeFactory.new
end

.init_import_signature__md5(rac, *rest) ⇒ Object


9
10
11
12
13
# File 'lib/rant/import/signature/md5.rb', line 9

def self.init_import_signature__md5(rac, *rest)
    sig = Signature::MD5.new(rac)
    rac.var._set("__signature_md5__", sig)
    rac.var._init("__signature__", sig)
end

.init_import_signedfile(rac, *rest) ⇒ Object


7
8
9
10
# File 'lib/rant/import/signedfile.rb', line 7

def self.init_import_signedfile(rac, *rest)
    rac.import "signature/md5" unless rac.var._get("__signature__")
    rac.import "metadata" unless rac.var._get("__metadata__")
end