Class: GraphdocRuby::RakeTask

Inherits:
Object
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/graphdoc-ruby/rake_task.rb

Instance Method Summary collapse

Constructor Details

#initializeRakeTask

Set the parameters of this task by passing keyword arguments or assigning attributes inside the block



9
10
11
12
13
14
15
16
17
# File 'lib/graphdoc-ruby/rake_task.rb', line 9

def initialize
  dependencies = if defined?(::Rails)
    [:environment]
  else
    []
  end

  define_tasks(dependencies)
end