Class: PyramidScheme::Tasks

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/pyramid_scheme/tasks.rb

Overview

PyramidScheme::Tasks.new(‘path/to/configuration/yml’)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(yml_path = nil) ⇒ Tasks

Returns a new instance of Tasks.



6
7
8
9
10
11
12
# File 'lib/pyramid_scheme/tasks.rb', line 6

def initialize(yml_path = nil)
  unless yml_path.nil?
    @yml_path = yml_path 
    configure_with_yml
  end
  define
end

Instance Attribute Details

#yml_pathObject (readonly)

Returns the value of attribute yml_path.



4
5
6
# File 'lib/pyramid_scheme/tasks.rb', line 4

def yml_path
  @yml_path
end