Class: SimpleSite::Tasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- SimpleSite::Tasks
- 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
-
#site ⇒ Object
readonly
Returns the value of attribute site.
Instance Method Summary collapse
-
#initialize(&site_building_block) ⇒ Tasks
constructor
A new instance of Tasks.
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
#site ⇒ Object (readonly)
Returns the value of attribute site.
15 16 17 |
# File 'lib/simple_site/tasks.rb', line 15 def site @site end |