Sha256: edb2b3717335f685523676550169fd0eb53c89502e227f3b953ebd11b348fbe5

Contents?: true

Size: 805 Bytes

Versions: 4

Compression:

Stored size: 805 Bytes

Contents

require 'mimi/console'

extend Mimi::Console::Colors
extend Mimi::Console::Colors::Disabled unless STDOUT.isatty

#
# Include this task as dependency to require application instantiation
#
task :application do
  @application_runner = Mimi::Application.runner
  @application = @application_runner.application_instance
  define_method :logger do
    @application.logger
  end
end

namespace :application do
  # Include this task as dependency to require application instantiation and startup
  #
  task configure: :application do
    @application_runner.emit(:configure)
  end

  # Include this task as dependency to require application instantiation, startup
  # and starting of all modules
  #
  task environment: [:application, :"application:configure"] do
    @application_runner.emit(:start)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mimi-0.1.4 lib/tasks/core.rake
mimi-0.1.3 lib/tasks/core.rake
mimi-0.1.1 lib/tasks/core.rake
mimi-0.1.0 lib/tasks/core.rake