Method: AsProject::AsClass#initialize

Defined in:
lib/asclass.rb

#initialize(args = nil) ⇒ AsClass

Returns a new instance of AsClass.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/asclass.rb', line 13

def initialize(args=nil)
#      begin
    @created_files = []
    @arguments = parse_args(args)
    @project = get_project(@arguments.execution_dir)
    if(!@arguments.name.nil?)
      configure_project(@arguments.name)
    end
    if(@arguments.force)
      @project.replace_all = true
    end
    execute
    finish
#      rescue Exception => e
#        puts e.to_s
#        exit
#      end
end