Module: Tomo::Plugin::Rails::Helpers
- Defined in:
- lib/tomo/plugin/rails/helpers.rb
Instance Method Summary collapse
- #rails(*args, **opts) ⇒ Object
- #rake(*args, **opts) ⇒ Object
- #rake? ⇒ Boolean
- #thor(*args, **opts) ⇒ Object
Instance Method Details
#rails(*args, **opts) ⇒ Object
5 6 7 8 9 |
# File 'lib/tomo/plugin/rails/helpers.rb', line 5 def rails(*args, **opts) prepend("exec", "rails") do bundle(*args, **opts) end end |
#rake(*args, **opts) ⇒ Object
11 12 13 14 15 |
# File 'lib/tomo/plugin/rails/helpers.rb', line 11 def rake(*args, **opts) prepend("exec", "rake") do bundle(*args, **opts) end end |
#rake? ⇒ Boolean
17 18 19 20 |
# File 'lib/tomo/plugin/rails/helpers.rb', line 17 def rake?(*, **) result = rake(*, **, raise_on_error: false) result.success? end |
#thor(*args, **opts) ⇒ Object
22 23 24 25 26 |
# File 'lib/tomo/plugin/rails/helpers.rb', line 22 def thor(*args, **opts) prepend("exec", "thor") do bundle(*args, **opts) end end |