Skip to content

Instantly share code, notes, and snippets.

@thecodejunkie
Created January 13, 2011 21:14
Show Gist options
  • Save thecodejunkie/778618 to your computer and use it in GitHub Desktop.
Save thecodejunkie/778618 to your computer and use it in GitHub Desktop.
ARTIFACTS_FOLDER = File.expand_path(File.join(File.dirname(__FILE__), "build")) + '/'
@mxriverlynn
Copy link

ARTIFACTS_FOLDER = File.expand_path(File.join(File.dirname(FILE), "build/"))

@thecodejunkie
Copy link
Author

With that I get a ruby error

NameError: uninitialized constant FILE

@mxriverlynn
Copy link

gist comments are interpreting the double _ as "bold"

@mxriverlynn
Copy link

using the _ _ FILE _ _ the way you have it originally... just put the / inside of the "build/"

@thecodejunkie
Copy link
Author

irb(main):012:0> File.expand_path(File.join(File.dirname(FILE), "build/"))
=> "D:/build"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment