Class: SimpleSite::Tasks

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

Overview

Rake tasks for managing your site.

Here’s a basic usage example:

SimpleSite::Tasks.new do |site|
  site.js_files = "site.js"
  site.buckets = %w(www.myawesomesite.com www.myotherdomain.com)
end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&site_building_block) ⇒ Tasks

Returns a new instance of Tasks.



17
18
19
20
21
# File 'lib/simple_site/tasks.rb', line 17

def initialize(&site_building_block)
  @site = SimpleSite::Site.new
  site_building_block.call @site
  define
end

Instance Attribute Details

#siteObject (readonly)

Returns the value of attribute site.



15
16
17
# File 'lib/simple_site/tasks.rb', line 15

def site
  @site
end