Skip to content

Commit dfeacf5

Browse files
committedMay 9, 2015
Document adding extra tasks (ex: spec task)
1 parent dd9da91 commit dfeacf5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎README.md

+12
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ Appium::Thor::Config.set do
1717
run 'docs/helpers_docs.md', globs('/lib/appium_thor/helpers.rb')
1818
end
1919
end
20+
21+
# Must use '::' otherwise Default will point to Thor::Sandbox::Default
22+
# Debug by calling Thor::Base.subclass_files via Pry
23+
#
24+
# https://github.com/erikhuda/thor/issues/484
25+
#
26+
class ::Default < Thor
27+
desc 'spec', 'Run RSpec tests'
28+
def spec
29+
exec 'rspec spec'
30+
end
31+
end
2032
```
2133

2234
# Defaults

0 commit comments

Comments
 (0)
Please sign in to comment.