Module: Amy

Defined in:
lib/amyf.rb

Overview

Stops to smells the roses

Class Method Summary collapse

Class Method Details

.cat_artObject



31
32
33
34
35
36
37
38
39
# File 'lib/amyf.rb', line 31

def self.cat_art
  "    -----------------------\n       /\\\\_/\\\\\n      ( o.o )   dance\n       > ^ <      break  ?\n    -----------------------\n  CAT\nend\n"

.meditateObject

Meditate. Medicate. Meditate.

  • IDLES



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/amyf.rb', line 13

def self.meditate
  options = {}
  OptionParser.new do |opts|
    opts.banner = cat_art
    opts.on('--battleship', 'Laptop setup') { |o| options[:battleship] = o }
    opts.on('-r', '--roadrunner URLS', 'Comma-separated list of GitHub repository URLs') do |github_urls|
      options[:github_urls] = github_urls.split(',')
    end
    opts.on('-h', '--help', 'I need somebody (not just anybody)') do
      puts opts
      exit
    end
  end.parse!

  Battlestation.new.setup if options[:battleship] == true
  RoadRunner.new(options[:github_urls]).run if options[:github_urls]
end