Skip to content

Commit

Permalink
YCP Killer: Translate YCP files into Ruby
Browse files Browse the repository at this point in the history
The commit is a result of running YCP Killer's "ruby" command.

See also:

  https://github.com/yast/ycp-killer
  • Loading branch information
yast-bot committed Jul 31, 2013
1 parent 5c3b93e commit c7fc55a
Show file tree
Hide file tree
Showing 22 changed files with 4,046 additions and 3,443 deletions.
102 changes: 102 additions & 0 deletions src/clients/fcoe-client.rb
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
93 changes: 0 additions & 93 deletions src/clients/fcoe-client.ycp

This file was deleted.

Loading

0 comments on commit c7fc55a

Please sign in to comment.