lib/shelr/player.rb in shelr-0.12.1 vs lib/shelr/player.rb in shelr-0.12.2
- old
+ new
@@ -5,34 +5,10 @@
require 'pathname'
module Shelr
class Player
- HEADER = <<-EOH
-
- ____ _ _ _ ____ _
- / ___|| |__ ___| | |/ ___|__ _ ___| |_
- \___ \| '_ \ / _ \ | | | / _` / __| __|
- ___) | | | | __/ | | |__| (_| \__ \ |_
- |____/|_| |_|\___|_|_|\____\__,_|___/\__|
-
--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
-
- EOH
-
- FOOTER = <<-EOF
--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- _____ _ _____ _
- |_ _| |__ ___ | ____|_ __ __| |
- | | | '_ \ / _ \ | _| | '_ \ / _` |
- | | | | | | __/ | |___| | | | (_| |
- |_| |_| |_|\___| |_____|_| |_|\__,_|
-
- EOF
-
-
def self.play(id)
new(id).play
end
def self.play_remote(url)
@@ -70,14 +46,14 @@
def initialize(id)
@record_id = id
end
def play
- puts HEADER
+ STDOUT.puts "-=" * (Shelr.terminal.size[:width] / 2)
puts
system(scriptreplay_cmd)
puts
- puts FOOTER
+ STDOUT.puts "-=" * (Shelr.terminal.size[:width] / 2)
end
private
def record_file(name)