diff options
| author | mokha <mokha@cisco.com> | 2018-02-13 19:20:35 -0700 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-02-13 19:20:35 -0700 |
| commit | 3883fe135d524743e0527f5a9deede323caf8c61 (patch) | |
| tree | f08f7eeefe702416930a4e8f932c71a06e066f73 /lib | |
| parent | 55b0c46ed3f8659be9d00386e0826327e94d4b1b (diff) | |
move cat to template.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/xsay.rb | 8 | ||||
| -rw-r--r-- | lib/xsay/templates/cat.template | 5 |
2 files changed, 6 insertions, 7 deletions
diff --git a/lib/xsay.rb b/lib/xsay.rb index 8682936..25099e9 100644 --- a/lib/xsay.rb +++ b/lib/xsay.rb @@ -5,13 +5,7 @@ module Xsay class CLI < Thor desc "cat <message>", "xsay cat meow" def cat(message) - template = <<-MESSAGE - ("`-''-/").___..--''"`-._ - `6_ 6 ) `-. ( ).`-.__.`) - (_Y_.)' ._ ) `._ `. ``-..-' - _..`--'_..-_/ /--'_.' ,' - (il),-'' (li),' ((!.-' - MESSAGE + template = IO.read(File.expand_path("xsay/templates/cat.template", File.dirname(__FILE__))) render(message, template) end diff --git a/lib/xsay/templates/cat.template b/lib/xsay/templates/cat.template new file mode 100644 index 0000000..a8c4dd0 --- /dev/null +++ b/lib/xsay/templates/cat.template @@ -0,0 +1,5 @@ + ("`-''-/").___..--''"`-._ + `6_ 6 ) `-. ( ).`-.__.`) + (_Y_.)' ._ ) `._ `. ``-..-' + _..`--'_..-_/ /--'_.' ,' + (il),-'' (li),' ((!.-' |
