Module: WorkingMan
- Defined in:
- lib/working_man.rb,
lib/working_man/actions.rb,
lib/working_man/version.rb
Defined Under Namespace
Classes: Actions
Constant Summary collapse
- VERSION =
"0.3.0"
Class Method Summary collapse
-
.start_work ⇒ Object
Internal: Starts work day by calling WorkingMan::Actions#launch_applications, iterating through each app in $config.
-
.stop_work ⇒ Object
Internal: Stop work iterates through the apps in $config, stopping each one.
Class Method Details
.start_work ⇒ Object
Internal: Starts work day by calling WorkingMan::Actions#launch_applications, iterating through each app in $config. It exits if there are no applications with error code 2. If there are no URLs, the program finishes successfully.
Examples:
WorkingMan.start_work
14 15 16 17 18 19 20 21 |
# File 'lib/working_man.rb', line 14 def self.start_work print "Starting work...\n" WorkingMan::Actions.launch_applications($config['apps']) WorkingMan::Actions.open_urls($config['urls']) print "Work hard today!\n" end |
.stop_work ⇒ Object
Internal: Stop work iterates through the apps in $config, stopping each one
Examples:
WorkingMan.stop_work
29 30 31 32 33 34 35 |
# File 'lib/working_man.rb', line 29 def self.stop_work print "Stopping work...\n" WorkingMan::Actions.close_applications($config['apps']) print "Have a great day!\n" end |