Module: Logi::Command::Post

Extended by:
Logi::Command
Defined in:
lib/logi/command/post.rb

Class Method Summary collapse

Methods included from Logi::Command

check_argv, check_layout, check_path, options, tribool

Class Method Details

.run(argv) ⇒ Object



12
13
14
15
# File 'lib/logi/command/post.rb', line 12

def run argv
  path, layout = check_argv(*argv)
  puts Tilt.new(layout).render{Tilt[path].new{$stdin.read}.render}
end