Module: Tomo::Plugin::Rails::Helpers

Defined in:
lib/tomo/plugin/rails/helpers.rb

Instance Method Summary collapse

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

Returns:

  • (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