class Confinicky::Controllers::Aliases
A subclass of the command group controller specifically for managing alias statements.
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/confinicky/controllers/aliases.rb, line 8 def initialize super(file_type_key: :aliases) @commands = @shell_file.aliases @table_title = "Aliases" end
Public Instance Methods
save!()
click to toggle source
Updates the actual shell file on disk.
# File lib/confinicky/controllers/aliases.rb, line 16 def save! @shell_file.aliases = @commands @shell_file.write! end