Class: Rave::Task

Inherits:
Warbler::Task
  • Object
show all
Defined in:
lib/commands/task.rb

Constant Summary collapse

REQUIRED_GEMS =
["rave", "json-jruby", "rack", "builder", "RedCloth"]

Instance Method Summary collapse

Constructor Details

#initializeTask

Returns a new instance of Task.



12
13
14
15
16
17
18
19
20
# File 'lib/commands/task.rb', line 12

def initialize
  warbler_config = Warbler::Config.new do |config|
    config.gems = ((robot_config['gems'] || []) + REQUIRED_GEMS).uniq
    config.includes = %w( robot.rb config.yaml )
  end
  super(:rave, warbler_config)
  define_post_war_processes
  define_deploy_task
end