Class: Jets::Command::RakeCommand
- Extended by:
- Actions
- Defined in:
- lib/jets/commands/rake/rake_command.rb
Overview
:nodoc:
Class Method Summary collapse
Methods included from Actions
load_generators, load_tasks, require_application!, require_application_and_environment!, set_application_directory!
Methods inherited from Base
banner, base_name, command_name, default_command_root, desc, engine?, executable, exit_on_failure?, #help, hide_command!, inherited, long_desc, namespace, usage_path
Methods included from ApiHelpers
#check_for_error_message!, #no_token_exit!, #paging_params
Methods included from AwsHelpers
Methods included from AwsServices
#apigateway, #aws_lambda, #aws_options, #cfn, #dynamodb, #logs, #s3, #s3_resource, #sns, #sqs, #sts
Methods included from AwsServices::StackStatus
#lookup, #stack_exists?, #stack_in_progress?
Methods included from AwsServices::GlobalMemoist
Class Method Details
.perform(task, args, config) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/jets/commands/rake/rake_command.rb', line 15 def perform(task, args, config) Jets.boot require_rake # Wonder if there's a better way to do this. # We do not use the rask_task block to require dummy/rails # because don't want Rails const to be defined for other rake tasks # like jets:assets:precompile. We want the Rails const to be defined # lazily at runtime only for db rake tasks. require "jets/overrides/dummy/rails" if task.include?("db:") Rake.with_application do |rake| rake.init("jets", [task, *args]) rake.load_rakefile if Jets.respond_to?(:root) rake..suppress_backtrace_pattern = /\A(?!#{Regexp.quote(Jets.root.to_s)})/ end rake.standard_exception_handling { rake.top_level } end end |
.printing_commands ⇒ Object
11 12 13 |
# File 'lib/jets/commands/rake/rake_command.rb', line 11 def printing_commands formatted_rake_tasks.map(&:first) end |