Sha256: 8f24fea64e3fd49b5721072dd35e3aa9c219e271818b36d338cd4a85745dc592

Contents?: true

Size: 413 Bytes

Versions: 12

Compression:

Stored size: 413 Bytes

Contents

module WorkingMan
  class Actions
    def self.close_applications apps
      apps.each do |app_name|
        `osascript -e "tell application \\"#{app_name}\\" to quit"`
      end
    end

    def self.launch_applications apps
      apps.each do |app_name|
        `open -a "#{app_name}.app"`
      end
    end

    def self.open_urls urls
      urls.each do |url|
        `open #{url}`
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
working_man-1.2.0 lib/working_man/actions.rb
working_man-1.1.0 lib/working_man/actions.rb
working_man-1.0.0 lib/working_man/actions.rb
working_man-0.3.0 lib/working_man/actions.rb
working_man-0.2.0 lib/working_man/actions.rb
working_man-0.1.1 lib/working_man/actions.rb
working_man-0.0.6 lib/working_man/actions.rb
working_man-0.0.5 lib/working_man/actions.rb
working_man-0.0.4 lib/working_man/actions.rb
working_man-0.0.3 lib/working_man/actions.rb
working_man-0.0.2 lib/working_man/actions.rb
working_man-0.0.1 lib/working_man/actions.rb