lib/macros4cuke/application.rb in macros4cuke-0.5.14 vs lib/macros4cuke/application.rb in macros4cuke-0.5.15
- old
+ new
@@ -7,12 +7,10 @@
module Macros4Cuke # Module used as a namespace
# Runner for the Macros4Cuke application.
class Application
attr_reader(:options)
- public
-
def initialize()
@options = {}
end
# Entry point for the application object.
@@ -41,10 +39,10 @@
file_name = 'use_macros4cuke'
prefix = aPath.relative? ? './' : ''
destination = prefix + aPath.to_s + '/' + file_name + '.rb'
begin
- fail SupportFileExists.new(destination) if File.exist?(destination)
+ raise SupportFileExists.new(destination) if File.exist?(destination)
template_pathname =
Macros4Cuke::RootDir + 'templates/use_macros4cuke.erb'
template = File.read(template_pathname)