-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 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,41 @@ | ||
# lib/InstFunctions.rb | ||
|
||
require "yast" | ||
|
||
module Yast | ||
# Replacement for the Yast::Package module | ||
# | ||
# @see https://github.com/yast/yast-installation/blob/279b7d108eab24082237cf5e3f02a31f58fef8da/src/modules/InstFunctions.rb | ||
class InstFunctionsClass < Module | ||
def main | ||
puts "Loading mocked module #{__FILE__}" | ||
end | ||
|
||
# @see https://github.com/yast/yast-installation/blob/279b7d108eab24082237cf5e3f02a31f58fef8da/src/modules/InstFunctions.rb#L56 | ||
def ignored_features | ||
[] | ||
end | ||
|
||
# @see https://github.com/yast/yast-installation/blob/279b7d108eab24082237cf5e3f02a31f58fef8da/src/modules/InstFunctions.rb#L83 | ||
def reset_ignored_features | ||
end | ||
|
||
# @see https://github.com/yast/yast-installation/blob/279b7d108eab24082237cf5e3f02a31f58fef8da/src/modules/InstFunctions.rb#L91 | ||
def feature_ignored?(feature_name) | ||
false | ||
end | ||
|
||
# @see https://github.com/yast/yast-installation/blob/279b7d108eab24082237cf5e3f02a31f58fef8da/src/modules/InstFunctions.rb#L107 | ||
def second_stage_required? | ||
false | ||
end | ||
|
||
# @see https://github.com/yast/yast-installation/blob/279b7d108eab24082237cf5e3f02a31f58fef8da/src/modules/InstFunctions.rb#L137 | ||
def self_update_explicitly_enabled? | ||
false | ||
end | ||
end | ||
|
||
InstFunctions = InstFunctionsClass.new | ||
InstFunctions.main | ||
end |
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 @@ | ||
../../modules/InstFunctions.rb |