You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/env rubyrequire"thor"classExample < ThorincludeThor::Actionsdesc"test","example test script"deftestfile="test.txt"inside("test_dir",:verbose=>true)dorun("touch #{file}")copy_filefile,"test_2.txt"endendprotecteddefself.source_rootFile.dirname(__FILE__)endendExample.start
Doesn't work. It returns:
$ ./example test
inside test_dir
run touch test.txt from "./test_dir"
Could not find "test.txt" in any of your source paths. Your current source paths are:
.
File example.thor:
classExample < ThorincludeThor::Actionsdesc"test","example test script"deftestfile="test.txt"inside("test_dir",:verbose=>true)dorun("touch #{file}")copy_filefile,"test_2.txt"endendprotecteddefself.source_rootFile.dirname(__FILE__)endend
Works as expected.
The text was updated successfully, but these errors were encountered:
I could be missing something here, but
File
example
Doesn't work. It returns:
File
example.thor
:Works as expected.
The text was updated successfully, but these errors were encountered: