class Rubyfuu::CLI

Public Instance Methods

compile(path) click to toggle source
# File lib/rubyfuu/cli.rb, line 7
def compile(path)
  builder = Rubyfuu::Builder.new
  with_rescue { builder.build(path) }
end
execute(path) click to toggle source
# File lib/rubyfuu/cli.rb, line 13
def execute(path)
  builder = Rubyfuu::Builder.new
  with_rescue { builder.run(path) }
end
version() click to toggle source
# File lib/rubyfuu/cli.rb, line 19
def version
  puts "Rubyfuu #{VERSION}"
end

Private Instance Methods

with_rescue() { || ... } click to toggle source
# File lib/rubyfuu/cli.rb, line 24
def with_rescue(&block)
  yield
rescue Errno::ENOENT
  puts "File does not exist."
end