Class: RackEnvironment::Task

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/rack_environment/task.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Task

Returns a new instance of Task.



7
8
9
10
11
12
13
# File 'lib/rack_environment/task.rb', line 7

def initialize(options={})
  rack_environment = RackEnvironment.new(options)

  task :rack_environment do
    rack_environment.update_environment!
  end
end