Skip to content

Commit

Permalink
Merge pull request #31 from jsuchome/master
Browse files Browse the repository at this point in the history
small fixes
  • Loading branch information
jreidinger committed Feb 4, 2013
2 parents e335ab8 + 1b14478 commit 99d6e4d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 19 deletions.
5 changes: 1 addition & 4 deletions config_agent-country/lib/config_agent/keyboard.rb
Expand Up @@ -20,9 +20,6 @@

module ConfigAgent
class Keyboard < ConfigAgent::Sysconfig
def initialize params={}
params[ :path] = "/etc/sysconfig/keyboard"
super( params )
end
FILE_PATH = "/etc/sysconfig/keyboard"
end
end
5 changes: 1 addition & 4 deletions config_agent-country/lib/config_agent/language.rb
Expand Up @@ -20,9 +20,6 @@

module ConfigAgent
class Language < ConfigAgent::Sysconfig
def initialize params={}
params[ :path] = "/etc/sysconfig/language"
super( params )
end
FILE_PATH = "/etc/sysconfig/clock"
end
end
7 changes: 1 addition & 6 deletions config_agent-firewall/lib/config_agent/susefirewall2.rb
Expand Up @@ -21,11 +21,6 @@

module ConfigAgent
class Susefirewall2 < ConfigAgent::Sysconfig

FIREWALL_FILE = "/etc/sysconfig/SuSEfirewall2"
def initialize params = {}
super FIREWALL_FILE,params
end

FILE_PATH = "/etc/sysconfig/clock"
end
end
4 changes: 2 additions & 2 deletions config_agent-runlevel/lib/config_agent/runlevel.rb
Expand Up @@ -65,7 +65,7 @@ def write(params)
}

runlevel = params["runlevel"]
if runlevel.nil? || ! runlevel.is_a? Integer
if runlevel.nil? || (! runlevel.is_a? Integer)
log.error "wrong argument for runlevel"
ret["success"] = false
return ret
Expand All @@ -83,7 +83,7 @@ def write(params)
# TODO special handling for runlevel 4 (see RunlevelEd::Write)
end

private:
private

def systemd_used?
return File.directory? SYSTEMD_MOUNT_DIR
Expand Down
4 changes: 1 addition & 3 deletions config_agent-windowmanager/lib/config_agent/windowmanager.rb
Expand Up @@ -21,8 +21,6 @@

module ConfigAgent
class Windowmanager < ConfigAgent::Sysconfig
def initialize params={}
super "/etc/sysconfig/windowmanager",params
end
FILE_PATH = "/etc/sysconfig/windowmanager"
end
end

0 comments on commit 99d6e4d

Please sign in to comment.