Module: Akaer::ApplicationMethods::System

Defined in:
lib/akaer/application.rb

Overview

System management methods.

Instance Method Summary collapse

Instance Method Details

#action_addBoolean

Adds aliases to the interface.

Returns:

  • (Boolean)

    true if action succeeded, false otherwise.



128
129
130
# File 'lib/akaer/application.rb', line 128

def action_add
  manage_action(:add, i18n.add_empty, config.quiet)
end

#action_installBoolean

Installs the application into the autolaunch.

Returns:

  • (Boolean)

    true if action succeeded, false otherwise.



142
143
144
# File 'lib/akaer/application.rb', line 142

def action_install
  manage_agent(launch_agent_path, :create_agent, :load_agent, config.quiet)
end

#action_removeBoolean

Removes aliases from the interface.

Returns:

  • (Boolean)

    true if action succeeded, false otherwise.



135
136
137
# File 'lib/akaer/application.rb', line 135

def action_remove
  manage_action(:remove, i18n.remove_empty, config.quiet)
end

#action_uninstallBoolean

Uninstalls the application from the autolaunch.

Returns:

  • (Boolean)

    true if action succeeded, false otherwise.



149
150
151
# File 'lib/akaer/application.rb', line 149

def action_uninstall
  manage_agent(launch_agent_path, :unload_agent, :delete_agent, config.quiet)
end