"in" not working properly. #11

Closed
omniplex opened this Issue Sep 2, 2012 · 2 comments

Comments

Projects
None yet
3 participants
@omniplex

omniplex commented Sep 2, 2012

When attempting to use "in" for the schedule to get it to run after start-up an error is thrown that reads:

syntax error, unexpected keyword_in, expecting keyword_end
in '30s' # run once, 3...

@jenrzzz

This comment has been minimized.

Show comment Hide comment
@jenrzzz

jenrzzz Mar 7, 2013

Contributor

in is a keyword, so the parser tries to parse it, even in the task DSL. As a workaround, you can just call self.in

self.in '5m'
def run
   do_some_shit
end
Contributor

jenrzzz commented Mar 7, 2013

in is a keyword, so the parser tries to parse it, even in the task DSL. As a workaround, you can just call self.in

self.in '5m'
def run
   do_some_shit
end
@ssoroka

This comment has been minimized.

Show comment Hide comment
@ssoroka

ssoroka Mar 7, 2013

Owner

oh hey, look at that. I should probably rename it.. Maybe I'll just update the docs to reflect this for now.

Owner

ssoroka commented Mar 7, 2013

oh hey, look at that. I should probably rename it.. Maybe I'll just update the docs to reflect this for now.

@ssoroka ssoroka closed this Mar 7, 2013

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