-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YCP Killer: Translate YCP files into Ruby
The commit is a result of running YCP Killer's "ruby" command. See also: https://github.com/yast/ycp-killer
- Loading branch information
Showing
22 changed files
with
4,046 additions
and
3,443 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
# encoding: utf-8 | ||
|
||
# ------------------------------------------------------------------------------ | ||
# Copyright (c) 2006 Novell, Inc. All Rights Reserved. | ||
# | ||
# | ||
# This program is free software; you can redistribute it and/or modify it under | ||
# the terms of version 2 of the GNU General Public License as published by the | ||
# Free Software Foundation. | ||
# | ||
# This program is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along with | ||
# this program; if not, contact Novell, Inc. | ||
# | ||
# To contact Novell about this file by physical or electronic mail, you may find | ||
# current contact information at www.novell.com. | ||
# ------------------------------------------------------------------------------ | ||
|
||
# File: clients/fcoe-client.ycp | ||
# Package: Configuration of fcoe-client | ||
# Summary: Main file | ||
# Authors: Gabriele Mohr <gs@suse.de> | ||
# | ||
# $Id: fcoe-client.ycp 27914 2006-02-13 14:32:08Z locilka $ | ||
# | ||
# Main file for fcoe-client configuration. Uses all other files. | ||
module Yast | ||
class FcoeClientClient < Client | ||
def main | ||
Yast.import "UI" | ||
|
||
#** | ||
# <h3>Configuration of fcoe-client</h3> | ||
|
||
textdomain "fcoe-client" | ||
|
||
# The main () | ||
Builtins.y2milestone("----------------------------------------") | ||
Builtins.y2milestone("FcoeClient module started") | ||
|
||
Yast.import "Progress" | ||
Yast.import "Report" | ||
Yast.import "Summary" | ||
|
||
Yast.import "CommandLine" | ||
Yast.include self, "fcoe-client/wizards.rb" | ||
|
||
@cmdline_description = { | ||
"id" => "fcoe-client", | ||
# Command line help text for the Xfcoe-client module | ||
"help" => _( | ||
"Configuration of fcoe-client" | ||
), | ||
"guihandler" => fun_ref(method(:FcoeClientSequence), "any ()"), | ||
"initialize" => fun_ref(FcoeClient.method(:Read), "boolean ()"), | ||
"finish" => fun_ref(FcoeClient.method(:Write), "boolean ()"), | ||
"actions" => | ||
# FIXME TODO: fill the functionality description here | ||
{}, | ||
"options" => | ||
# FIXME TODO: fill the option descriptions here | ||
{}, | ||
"mappings" => | ||
# FIXME TODO: fill the mappings of actions and options here | ||
{} | ||
} | ||
|
||
# is this proposal or not? | ||
@propose = false | ||
@args = WFM.Args | ||
if Ops.greater_than(Builtins.size(@args), 0) | ||
if Ops.is_path?(WFM.Args(0)) && WFM.Args(0) == path(".propose") | ||
Builtins.y2milestone("Using PROPOSE mode") | ||
@propose = true | ||
end | ||
end | ||
|
||
# main ui function | ||
@ret = nil | ||
|
||
if @propose | ||
@ret = FcoeClientAutoSequence() | ||
else | ||
@ret = CommandLine.Run(@cmdline_description) | ||
end | ||
Builtins.y2debug("ret=%1", @ret) | ||
|
||
# Finish | ||
Builtins.y2milestone("FcoeClient module finished") | ||
Builtins.y2milestone("----------------------------------------") | ||
|
||
deep_copy(@ret) | ||
|
||
# EOF | ||
end | ||
end | ||
end | ||
|
||
Yast::FcoeClientClient.new.main |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.