Skip to content

Require FileUtils #20

Open
wants to merge 1 commit into from

1 participant

@lmarburger

FileUtils may not be loaded when the config directory is being created.

$ cat test.rb 
require 'main'
Main { config email: 'arthur@dent.com' }

$ ruby test.rb 
/Users/Larry/.rvm/gems/ruby-1.9.3-p0-falcon@cloudapp-cli-test/gems/main-4.8.1/lib/main/program/class_methods.rb:318:in `config': uninitialized constant Main::Program::ClassMethods::FileUtils (NameError)
    from test.rb:2:in `block in <main>'
    from /Users/Larry/.rvm/gems/ruby-1.9.3-p0-falcon@cloudapp-cli-test/gems/main-4.8.1/lib/main/program/class_methods.rb:65:in `module_eval'
    from /Users/Larry/.rvm/gems/ruby-1.9.3-p0-falcon@cloudapp-cli-test/gems/main-4.8.1/lib/main/program/class_methods.rb:65:in `build'
    from /Users/Larry/.rvm/gems/ruby-1.9.3-p0-falcon@cloudapp-cli-test/gems/main-4.8.1/lib/main/factories.rb:16:in `run'
    from /Users/Larry/.rvm/gems/ruby-1.9.3-p0-falcon@cloudapp-cli-test/gems/main-4.8.1/lib/main/factories.rb:25:in `Main'
    from test.rb:2:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.