This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "yaml" | |
| require "cheetah" | |
| require "pp" | |
| require "rexml/document" | |
| class Package | |
| attr_accessor :layer, :name, :depends, :time, :total_time | |
| def initialize(name, depends) | |
| @name = name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| disks = a_devicegraph.disks # A disks object, Array on steroids | |
| disks = disks.with(name: ["/dev/sda", "/dev/sdb"]) # another disks object | |
| primary_parts = disks.partitions.with(type: :primary) # A Partitions object, another Array on steroids | |
| parts = disks.partitions.with(name: ["/dev/sda2", "/dev/sdc3"]) | |
| # equivalent line | |
| # parts = a_devicegraph.disks.partitions.with(name: ["/dev/sda2", "/dev/sdc3"]) | |
| # Calls to whatever.filesystems returns a Filesystems object which is another Array on steroids | |
| # So the equivalent to previous example (https://gist.github.com/ancorgs/9c628ef0f4fa717a2817) would be | |
| a_device_graph.filesystems.to_a # all file systems in the devicegraph |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| PROJECTS=( | |
| eina | |
| eet | |
| evas | |
| ecore | |
| embryo | |
| edje | |
| e_dbus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "yast" | |
| require "benchmark" | |
| VALUES = ["any", "nil", "void", "boolean", "string", "symbol", "integer", | |
| "float", "list", "map", "term", "path", "locale", "function", | |
| "byteblock" | |
| ] | |
| def replacement(object, to) | |
| types = Yast::Ops::TYPES_MAP[to] |
NewerOlder