class TiyoHw::ShellFunction

Constants

HW_FUNCTION

Public Class Methods

cmd() click to toggle source
# File lib/tiyo_hw/shell_function.rb, line 12
    def self.cmd
      path = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "exe", "tiyohw"))
      <<-eos
function #{HW_FUNCTION}() {
 URL=$1
 OUTPUT="$(#{path} setup $URL)"
 eval ${OUTPUT}
 OUTPUT="$(#{path} run $PWD)"
 eval ${OUTPUT}
}
eos
    end